forked from LikeLion-11th-Domtory/Domtory_Server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (71 loc) · 1.71 KB
/
docker-compose.yml
File metadata and controls
71 lines (71 loc) · 1.71 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
60
61
62
63
64
65
66
67
68
69
70
71
version: '3'
services:
nginx:
build: ./config/nginx
ports:
- "80:80"
- "443:443"
volumes:
- static_volume:/static
- /etc/letsencrypt:/etc/letsencrypt:ro
image: 313862985827.dkr.ecr.ap-northeast-2.amazonaws.com/domtory-nginx:latest
depends_on:
- web
platform: linux/amd64
web:
build:
context: .
dockerfile: ./config/web/Dockerfile
volumes:
- static_volume:/project/data/static
- ./:/project/code
command: ["./start.sh"]
ports:
- "8000:8000"
platform: linux/amd64
image: 313862985827.dkr.ecr.ap-northeast-2.amazonaws.com/domtory-web:latest
environment:
- DJANGO_SETTINGS_MODULE=server.settings.prod
env_file:
- .env
depends_on:
- rabbitmq
beat:
image: 313862985827.dkr.ecr.ap-northeast-2.amazonaws.com/domtory-beat:latest
build:
context: .
dockerfile: ./config/web/Dockerfile
command: celery -A server.celery_beat beat --loglevel info
platform: linux/amd64
env_file:
- .env
volumes:
- ./:/project/code
depends_on:
- rabbitmq
- web
worker:
image: 313862985827.dkr.ecr.ap-northeast-2.amazonaws.com/domtory-worker:latest
build:
context: .
dockerfile: ./config/web/Dockerfile
command: celery -A server worker -P gevent -c 100 --loglevel=info
platform: linux/amd64
env_file:
- .env
volumes:
- ./:/project/code
depends_on:
- rabbitmq
- web
rabbitmq:
image: rabbitmq:3-management-alpine
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=admin
platform: linux/amd64
ports:
- "5672:5672"
- "15672:15672"
volumes:
static_volume: