forked from 0x0FB0/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (62 loc) · 1.32 KB
/
Copy pathdocker-compose.yml
File metadata and controls
62 lines (62 loc) · 1.32 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
version: '2.1'
services:
db:
container_name: db
build: ./db_storage
mem_reservation: 2G
mem_limit: 4G
memswap_limit: 8G
env_file:
- db.env
expose:
- '3306'
command: --default-authentication-plugin=mysql_native_password
# database persistence between container reboots
volumes:
- ./db_storage/data:/var/lib/mysql
- ./db_storage/logs:/var/log/mysql
restart: always
sandbox:
container_name: sandbox
build: ./sandbox_storage
stdin_open: true
restart: always
queue:
container_name: queue
build: ./queue_storage
mem_limit: 512M
env_file:
- queue.env
entrypoint: ['bash', '/certs/entrypoint.sh']
expose:
- 5671
- 5672
volumes:
- ./queue_storage:/certs
logging:
driver: "none"
restart: always
web:
container_name: web
build: .
mem_reservation: 2G
oom_score_adj: -500
mem_limit: 4G
memswap_limit: 8G
env_file:
- web.env
- queue.env
- db.env
entrypoint: ['bash', './entrypoint.sh']
# stdin_open: true
# tty: true
ports:
- '8443:8443'
depends_on:
- db
- queue
volumes:
- ./queue_storage/client_cert:/etc/ssl/celery_client
# usefull for deveopment and hot patching
# - ./portal:/portal
restart: always