diff --git a/compose.yaml b/compose.yaml index fa9c889fa..55709777d 100644 --- a/compose.yaml +++ b/compose.yaml @@ -6,15 +6,19 @@ services: # volumes: # - .:/fradrive-src frontend: - build: ./docker/frontend + build: + dockerfile: ./docker/frontend/Dockerfile + context: ./ volumes: - - .:/fradrive + - &fradrive-mnt "fradrive:/fradrive" working_dir: /fradrive backend: build: ./docker/backend volumes: - - .:/fradrive + - *fradrive-mnt working_dir: /fradrive + depends_on: + - frontend database: # image: registry.uniworx.de/fradrive/fradrive/fradrive-db:latest build: ./docker/database @@ -22,4 +26,12 @@ services: ports: - "9876:5432" # fradrive: - # image: registry.uniworx.de/fradrive/fradrive/fradrive:0.1.0 \ No newline at end of file + # image: registry.uniworx.de/fradrive/fradrive/fradrive:0.1.0 + +volumes: + fradrive: + driver: local + driver_opts: + type: none + o: bind + device: $PWD/ \ No newline at end of file