-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
88 lines (88 loc) · 2.45 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
version: '2'
services:
datanode:
privileged: true
image: negash/rancher-saas:latest
environment:
NATS_DSN: nats://nats:4222
SERVICE_NAME: mysql
DATA_SOURCE_FREEZE_TIME: '25'
SERVICE_ENV_MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
SERVICE_PORT: 3306/tcp
SERVICE_IMAGE: mariadb:5.5
SERVICE_VOLUME: /var/lib/mysql
SERVICE_CMD: mysqld --defaults-file=/var/lib/mysql/my.cnf --innodb_log_buffer_size=256M --innodb_log_file_size=512M --max_connections=2000 --character-set-server=utf8
SERVICE_ENV_MYSQL_DATABASE: mysq_database
USE_RANCHER: '1'
stdin_open: true
links:
- nats:nats
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /mnt:/mnt:shared
- /mysql_source_data_from_nfs:/source
tty: true
pid: host
command:
- python3
- -m
- japronto
- data.app
labels:
io.rancher.container.hostname_override: container_name
io.rancher.container.pull_image: always
io.rancher.scheduler.affinity:host_label_ne: no=saas
io.rancher.scheduler.global: 'true'
delivery:
image: negash/rancher-saas:latest
environment:
NATS_DSN: nats://nats:4222
SERVICE_NAME: mysql
stdin_open: true
links:
- nats:nats
tty: true
command:
- python3
- -m
- japronto
- delivery.app
labels:
io.rancher.scheduler.global: 'true'
io.rancher.container.hostname_override: container_name
nats-1:
image: nats
command: -p 4222 --http_port 8080 -cluster nats://0.0.0.0:5222 -routes nats://nats-2:5222,nats://nats-3:5222 -D
logging:
driver: json-file
options:
max-file: '1'
max-size: 1mb
nats-2:
image: nats
command: -p 4222 --http_port 8080 -cluster nats://0.0.0.0:5222 -routes nats://nats-1:5222,nats://nats-3:5222 -D
logging:
driver: json-file
options:
max-file: '1'
max-size: 1mb
nats-3:
image: nats
command: -p 4222 --http_port 8080 -cluster nats://0.0.0.0:5222 -routes nats://nats-1:5222,nats://nats-2:5222 -D
logging:
driver: json-file
options:
max-file: '1'
max-size: 1mb
nats:
image: nats
links:
- nats-1:nats-1
- nats-2:nats-2
- nats-3:nats-3
command: -p 4222 --http_port 8080 -cluster nats://0.0.0.0:5222 -routes nats://nats-1:5222,nats://nats-2:5222,nats://nats-3:5222 -D
logging:
driver: json-file
options:
max-file: '1'
max-size: 1mb