-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yml
42 lines (38 loc) · 853 Bytes
/
docker-compose-dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: '3.1'
networks:
django-backend-net-local:
volumes:
local_postgres_data:
local_postgres_data_backups:
pgdata:
driver: local
services:
django-backend:
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
links:
- postgres:postgres
depends_on:
- postgres
volumes:
- .:/app:rw
ports:
- '8001:8000'
networks:
- django-backend-net-local
env_file:
- ./.envs/.local/.django
- ./.envs/.local/.postgres
postgres:
image: postgres:15-alpine
ports:
- '5434:5432'
volumes:
- ./init/postgres:/docker-entrypoint-initdb.d:ro
- ./local_postgres_data:/var/lib/postgresql/data:rw
- ./local_postgres_data_backups:/backups
env_file:
- ./.envs/.local/.postgres
networks:
- django-backend-net-local