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