-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
74 lines (69 loc) · 1.3 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: "3.7"
services:
pg1:
container_name: church_postgres
image: postgres
volumes:
- pg1_data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=password
cache:
image: redis:7.0.4
restart: always
volumes:
- ./data/cache:/data
nginx:
image: nginx:1.23.1
restart: always
volumes:
- ./config/nginx:/etc/nginx/templates
- .:/code
ports:
- "80:80"
- "443:443"
web:
build: .
command: [
# "bash",
# "-c",
# "chmod +x ./wait-for-it.sh",
# "&&",
"./wait-for-it.sh",
"pg1:5432",
"--",
"uwsgi",
"--ini",
"/code/config/uwsgi/uwsgi.ini",
]
restart: always
# ports:
# - "8000:8000"
volumes:
- .:/code
environment:
- DJANGO_SETTINGS_MODULE=core.settings.prod
depends_on:
- pg1
daphne:
build: .
working_dir: /code/church/
command:
[
"../wait-for-it.sh",
"pg1:5432",
"--",
"daphne",
"-u",
"/code/church/daphne.sock",
"core.asgi:application",
]
restart: always
volumes:
- .:/code
environment:
- DJANGO_SETTINGS_MODULE=core.settings.prod
depends_on:
- pg1
- cache
volumes:
pg1_data: