-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
59 lines (55 loc) · 1.28 KB
/
compose.dev.yaml
File metadata and controls
59 lines (55 loc) · 1.28 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
services:
db:
extends:
file: compose.yaml
service: db
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=password
runmigrations:
restart: on-failure
build: ./app
environment:
- DB_HOST=db
- DEBUG=True
- POSTGRES_USER=django
- POSTGRES_DB=django
- POSTGRES_PASSWORD=password
- SECRET_KEY=django-insecure-^0jq%7b(%aj$j@n0_$gk@#73&z#t%4o#klquddg1e1hdal^9!s
- ALLOWED_HOSTS=*
volumes:
- "./app:/code"
command: python manage.py migrate
depends_on:
- db
createsuperuser:
restart: on-failure
build: ./app
environment:
- DB_HOST=db
- DEBUG=True
- POSTGRES_USER=django
- POSTGRES_DB=django
- POSTGRES_PASSWORD=password
volumes:
- "./app:/code"
command: python manage.py createsuperauto
depends_on:
- db
django:
extends:
file: compose.yaml
service: django
environment:
- DEBUG=True
- POSTGRES_PASSWORD=password
- SECRET_KEY=-x!x@_u71m7*cbb0ggh2w8**w_#of43q@ht05-h9gdwz9+1_pd
- ALLOWED_HOSTS=*
volumes:
- "./app:/code"
command: python manage.py runserver 0.0.0.0:8000
depends_on:
- createsuperuser
volumes:
postgres_data: