forked from boostorg/website-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
146 lines (135 loc) · 2.76 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
services:
db:
image: postgres:12.0
env_file: .env
environment:
- "POSTGRES_HOST_AUTH_METHOD=trust"
networks:
- backend
volumes:
- postgres_data:/var/lib/postgresql/data/
ports:
- "$PGPORT:5432"
redis:
image: "redis:alpine"
ports:
- "6379:6379"
networks:
- backend
volumes:
- redis_data:/data
web:
build:
context: .
dockerfile: docker/Dockerfile
args:
LOCAL_DEVELOPMENT: "true"
command: [ "/bin/bash", "/code/docker/compose-start.sh" ]
depends_on:
- db
- redis
environment:
- "LOCAL_DEVELOPMENT=true"
- "DOCKER_DIR=/code/docker"
- "PYTHON=python"
- "WEB_PORT=8000"
env_file:
- .env
init: true
networks:
- backend
- frontend
ports:
- "8000:8000"
volumes:
- .:/code
- ../website2022/:/website
stop_signal: SIGKILL
# mailman-core:
# image: maxking/mailman-core
# stop_grace_period: 5s
# ports:
# - "8001:8001" # API
# - "8024:8024" # LMTP - incoming emails
# volumes:
# - ./mailman/core:/opt/mailman/
# networks:
# - backend
# env_file:
# - .env
# depends_on:
# - db
# mailman-web:
# image: maxking/mailman-web
# entrypoint: /opt/mailman-docker/compose-start.sh
# env_file:
# - .env
# environment:
# - "DOCKER_DIR=/opt/mailman-docker"
# - "PYTHON=python3"
# - "WEB_PORT=8008"
# depends_on:
# - redis
# - db
# stop_signal: SIGKILL
# ports:
# - "8008:8008" # HTTP
# - "8080:8080" # uwsgi
# volumes:
# - .:/code
# - ./mailman/web:/opt/mailman-web-data
# - ./docker:/opt/mailman-docker
# networks:
# - backend
celery-worker:
build:
context: .
dockerfile: docker/Dockerfile
command:
- /bin/bash
- -c
- |
/code/docker/wait-for-it.sh -h web -p 8000 -t 20 -- celery -A config worker --concurrency=10 -P gevent --loglevel=debug
networks:
- backend
environment:
DEBUG_TOOLBAR: "false"
env_file:
- .env
depends_on:
- db
- redis
volumes:
- .:/code
celery-beat:
build:
context: .
dockerfile: docker/Dockerfile
command: [ "celery", "-A", "config", "beat", "--loglevel=debug" ]
environment:
DEBUG_TOOLBAR: "false"
env_file:
- .env
depends_on:
- db
- redis
networks:
- backend
volumes:
- .:/code
stop_signal: SIGKILL
maildev:
image: maildev/maildev
init: true
ports:
- "1025:1025"
- "1080:1080"
networks:
- backend
stop_signal: SIGKILL
networks:
backend:
frontend:
volumes:
postgres_data:
redis_data: