-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (32 loc) · 860 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (32 loc) · 860 Bytes
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
version: "3"
services:
ressonantes_app:
build:
context: .
ports:
- "8000:8000"
volumes:
- ./ressonantes:/ressonantes
command: >
sh -c "python manage.py wait_for_db &&
python manage.py migrate &&
python manage.py runserver 0.0.0.0:8000 --settings=ressonantes.settings.development"
environment:
- DB_HOST=ressonantes_db
- DB_NAME=db_ressonantes_app
- DB_USER=postgres
- DB_PASSWORD=K8YvzabSrzeGUAecJ8hQkfuXZEjU9ZcY
restart: always
depends_on:
- ressonantes_db
ressonantes_db:
image: postgres:12
restart: always
environment:
- POSTGRES_DB=db_ressonantes_app
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=K8YvzabSrzeGUAecJ8hQkfuXZEjU9ZcY
volumes:
- postgres:/var/lib/postgresql/data
volumes:
postgres: