build(docker): update compose.yaml

This commit is contained in:
Sarah Vaupel 2024-09-05 01:51:31 +02:00
parent 42cc5cc4a2
commit 3fcdbdf7f2

View File

@ -1,29 +1,30 @@
services:
frontend:
image: registry.uniworx.de/fradrive/fradrive/frontend
pull_policy: if_not_present
# image: registry.uniworx.de/fradrive/fradrive/frontend
# pull_policy: if_not_present
build:
dockerfile: ./docker/frontend/Dockerfile
context: ./
environment:
- PROJECT_DIR=/fradrive
volumes:
- &fradrive-mnt "fradrive:/fradrive"
working_dir: /fradrive
privileged: true
- &fradrive-mnt
type: volume
source: fradrive
target: /tmp/fradrive
backend:
image: registry.uniworx.de/fradrive/fradrive/backend
pull_policy: if_not_present
# image: registry.uniworx.de/fradrive/fradrive/backend
# pull_policy: if_not_present
build:
dockerfile: ./docker/backend/Dockerfile
context: ./
volumes:
- *fradrive-mnt
working_dir: /fradrive
depends_on:
- frontend
privileged: true
database:
image: registry.uniworx.de/fradrive/fradrive/database
pull_policy: if_not_present
# image: registry.uniworx.de/fradrive/fradrive/database
# pull_policy: if_not_present
build: ./docker/database
ports:
- "9876:5432"
@ -31,8 +32,8 @@ services:
volumes:
fradrive:
driver: local
driver_opts:
type: none
o: bind
device: $PWD/
# driver: local
# driver_opts:
# type: none
# o: bind
# device: ./