Systemy-rozmyte-sql/docker-compose.yml

41 lines
845 B
YAML
Raw Normal View History

2021-12-04 21:41:57 +01:00
version: "3"
services:
backend:
build:
context: .
dockerfile: docker/backend.Dockerfile
ports:
- 8000:8000
command: python manage.py runserver 0.0.0.0:8000
entrypoint: /opt/backend-entrypoint.sh
env_file:
- dev.env
- dev.db.env
volumes:
- ./backend:/opt/backend
- ./docker/backend-entrypoint.sh:/opt/backend-entrypoint.sh:z
depends_on:
- db
frontend:
build:
context: .
dockerfile: docker/frontend.Dockerfile
ports:
- 8080:8080
entrypoint: /opt/frontend-entrypoint.sh
volumes:
- ./frontend:/opt/frontend
- ./docker/frontend-entrypoint.sh:/opt/frontend-entrypoint.sh:z
db:
image: postgres:13
env_file:
- dev.db.env
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data: