update deployment

This commit is contained in:
Simon 2023-07-31 21:31:14 +07:00
parent 96427bd17f
commit 1a464b4397
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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:

View File

@ -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