-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprod.yml
106 lines (95 loc) · 1.94 KB
/
prod.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
version: '3'
volumes:
prod_postgres_data: {}
static_files: {}
buckets: {}
services:
django:
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
depends_on:
- postgres
- redis
- bridge
- minio
volumes:
- static_files:/static
env_file:
- .envs/.prod/.django
- .envs/.prod/.postgres
- .envs/.prod/.redis
- .envs/.prod/.minio
expose:
- "8000"
command: /start
restart: on-failure
bridge:
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
env_file:
- .envs/.prod/.django
- .envs/.prod/.postgres
- .envs/.prod/.redis
- .envs/.prod/.minio
depends_on:
- redis
- postgres
- judgezero
command: python manage.py runworker judgebridge
restart: on-failure
postgres:
image:
postgres:11-alpine
volumes:
- prod_postgres_data:/var/lib/postgresql/data
expose:
- "5432"
env_file:
- .envs/.prod/.postgres
restart: on-failure
judgezero:
image: judge0/api
expose:
- "3000"
env_file:
- .envs/.prod/.judge0
- .envs/.prod/.redis
- .envs/.prod/.postgres
restart: on-failure
worker:
image: judge0/api
env_file:
- .envs/.prod/.judge0
- .envs/.prod/.redis
- .envs/.prod/.postgres
command: bash -c "while true; do rails resque:work; done"
privileged: true
restart: on-failure
redis:
image:
redis:5-alpine
expose:
- "6379"
restart: on-failure
rev-proxy:
image: nginx
depends_on:
- minio
- django
volumes:
- ./compose/nginx.conf:/etc/nginx/nginx.conf
ports:
- 80:80
restart: on-failure
minio:
image: minio/minio:RELEASE.2019-04-23T23-50-36Z
volumes:
- buckets:/data
expose:
- "9000"
env_file:
- .envs/.prod/.minio
command: server /data
restart: on-failure