update the docker-compose files

This commit is contained in:
Andreas Zweili 2020-11-27 23:27:04 +01:00
parent 31bbf41d6e
commit 08f5c98771
2 changed files with 8 additions and 6 deletions

View File

@ -12,7 +12,7 @@ services:
volumes: volumes:
- db_data:/var/lib/postgresql/data/ - db_data:/var/lib/postgresql/data/
web: backend:
build: . build: .
volumes: volumes:
- .:/code - .:/code
@ -23,11 +23,11 @@ services:
depends_on: depends_on:
- db - db
nginx: frontend:
build: ./nginx build: frontend/.
depends_on:
- backend
ports: ports:
- 80:80 - 80:80
depends_on:
- web
volumes: volumes:
- ./static:/home/app/web/static - ./static:/home/app/web/static

View File

@ -22,5 +22,7 @@ services:
frontend: frontend:
build: frontend/. build: frontend/.
depends_on:
- backend
ports: ports:
- 8080:80 - 80:80