mirror of
https://github.com/tubearchivist/tubearchivist-server.git
synced 2024-11-21 19:30:12 +00:00
update deployment
This commit is contained in:
parent
96427bd17f
commit
1a464b4397
@ -24,7 +24,7 @@ function docker_publish {
|
|||||||
rsync -a --progress --delete helper_scripts $public_host:
|
rsync -a --progress --delete helper_scripts $public_host:
|
||||||
rsync -a --progress --delete builder/ $public_host:builder
|
rsync -a --progress --delete builder/ $public_host:builder
|
||||||
ssh "$public_host" "mkdir -p builder/clone"
|
ssh "$public_host" "mkdir -p builder/clone"
|
||||||
ssh "$public_host" 'docker compose -f docker/docker-compose.yml up -d --build'
|
ssh "$public_host" 'docker compose -f docker/docker-compose.yml up -d --build tubearchivist'
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ $1 == "test" ]]; then
|
if [[ $1 == "test" ]]; then
|
||||||
|
@ -27,7 +27,7 @@ services:
|
|||||||
- "8080"
|
- "8080"
|
||||||
# backend postgres
|
# backend postgres
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:14
|
image: postgres:15
|
||||||
container_name: postgres
|
container_name: postgres
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# builder
|
# builder
|
||||||
FROM python:3.10.9-slim-bullseye as builder
|
FROM python:3.11.3-slim-bullseye as builder
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
build-essential
|
build-essential
|
||||||
@ -8,7 +8,7 @@ COPY requirements.txt /requirements.txt
|
|||||||
RUN pip install --user -r requirements.txt
|
RUN pip install --user -r requirements.txt
|
||||||
|
|
||||||
# final
|
# final
|
||||||
FROM python:3.10.9-slim-bullseye as tubearchivist-web
|
FROM python:3.11.3-slim-bullseye as tubearchivist-web
|
||||||
|
|
||||||
ARG INSTALL_DEBUG
|
ARG INSTALL_DEBUG
|
||||||
ENV PYTHONUNBUFFERED 1
|
ENV PYTHONUNBUFFERED 1
|
||||||
|
Loading…
Reference in New Issue
Block a user