41 lines
845 B
YAML
41 lines
845 B
YAML
|
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:
|