File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- POSTGRES_PASSWORD = postgres
2- POSTGRES_USER = postgres
3- POSTGRES_DB = postgres
4- POSTGRES_PORT = 5432
Original file line number Diff line number Diff line change 11services :
2- db :
3- image : postgres
4- ports :
5- - " ${POSTGRES_PORT}:5432"
6- volumes :
7- - postgres_db:/var/lib/postgresql/data
8- environment :
9- - POSTGRES_USER=${POSTGRES_USER}
10- - POSTGRES_DB=${POSTGRES_DB}
11- - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
12- restart : always
13- env_file :
14- - .env
152 web :
163 build : .
174 command : gunicorn --bind 0.0.0.0:8000 --workers 6 pygoat.wsgi
@@ -21,14 +8,8 @@ services:
218 - .:/app
229 depends_on :
2310 - migration
24- - db
2511 migration :
2612 build : .
2713 command : python manage.py migrate --noinput
2814 volumes :
29- - .:/app
30- depends_on :
31- - db
32-
33- volumes :
34- postgres_db:
15+ - .:/app
You can’t perform that action at this time.
0 commit comments