simplify build in docker compose, fix umami link

This commit is contained in:
simon 2022-12-26 18:37:43 +07:00
parent e422c11d94
commit 1c8faf712f
Signed by: simon
GPG Key ID: 2C15AA5E89985DD4
3 changed files with 5 additions and 7 deletions

View File

@ -16,8 +16,7 @@ function sync_docker {
--exclude static/dyn \
web "$remote_host":docker/
ssh "$remote_host" 'docker build -t bbilly1/lpb-air:latest docker/web'
ssh "$remote_host" 'docker compose -f docker/docker-compose.yml up -d'
ssh "$remote_host" 'docker compose -f docker/docker-compose.yml up -d --build'
}
@ -36,8 +35,7 @@ function sync_test {
--exclude static/dyn \
web "$local_host":docker/
ssh "$local_host" 'docker build -t bbilly1/lpb-air:latest docker/web'
ssh "$local_host" 'docker compose -f docker/docker-compose.yml up -d'
ssh "$local_host" 'docker compose -f docker/docker-compose.yml up -d --build'
}

View File

@ -26,7 +26,7 @@ services:
- NGINX_PROXY_CONTAINER=nginx-proxy
# backend flask
flask:
image: bbilly1/lpb-air
build: ./web
container_name: flask
restart: always
volumes:
@ -62,7 +62,7 @@ services:
- "5432"
# umami stats
umami:
image: ghcr.io/mikecao/umami:postgresql-latest
image: docker.umami.dev/umami-software/umami:postgresql-latest
container_name: umami
expose:
- "3000"

View File

@ -3,7 +3,7 @@ version: "3.2"
services:
# backend flask
flask:
image: bbilly1/lpb-air
build: ./web
container_name: flask
restart: always
volumes: