-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (41 loc) · 890 Bytes
/
docker-compose.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
43
44
45
46
47
version: '3.8'
services:
db:
image: postgres:latest
volumes:
- postgres_data:/var/lib/postgresql/data
restart: always
environment:
POSTGRES_DB: '${DB_NAME1}'
POSTGRES_USER: '${USER1}'
POSTGRES_PASSWORD: '${PASSWORD1}'
ports:
- "5432:5432"
networks:
- backend
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/app
ports:
- "8000:8000"
depends_on:
- db
environment:
DEBUG: '1'
DB_NAME: '${DB_NAME1}'
DB_USER: '${USER1}'
DB_PASS: '${PASSWORD1}'
DB_SERVICE: 'db'
DB_PORT: '5432'
AWS_ACCESS_KEY_ID: '${AWS_ACCESS_KEY_ID1}'
AWS_SECRET_ACCESS_KEY: '${AWS_SECRET_ACCESS_KEY1}'
AWS_DEFAULT_REGION: '${REGION}'
networks:
- backend
networks:
backend:
driver: bridge
volumes:
postgres_data: