-
Notifications
You must be signed in to change notification settings - Fork 30
/
factorish.yml
55 lines (55 loc) · 1.75 KB
/
factorish.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
factorish:
mode: develop
memory: 2048
cpus: 1
instances: 3
expose_docker: True
expose_etcd: True
expose_registry: True
expose_ports:
- 3306
coreos:
channel: alpha
min_version: 554
flannel:
enabled: False
network: 10.1.0.0/16
applications:
registry:
repository: registry:2
docker_options:
- '-p 5000:5000'
- '-e GUNICORN_OPTS=[--preload]'
- '-e search_backend='
- '-v /home/core/share/registry:/var/lib/registry'
command:
registrator:
repository: gliderlabs/registrator
docker_options:
- '-v /var/run/docker.sock:/tmp/docker.sock:ro'
- '-h $HOSTNAME'
command: '-ttl 30 -ttl-refresh 20 etcd://$COREOS_PRIVATE_IPV4:4001/services'
database:
repository: database
docker_options:
- "-e ETCD_HOST=$COREOS_PRIVATE_IPV4"
- "-e HOST=$COREOS_PRIVATE_IPV4"
- "-e SERVICE_NAME=database"
- "-e DB_OPTIONS='--verbose --skip-sync-frm --innodb_flush_log_at_trx_commit=0 --innodb-support-xa=0 --query-cache-type=1'"
- "-p 3306:3306 -e SERVICE_3306_NAME=database_port"
- "-p 4444:4444 -e SERVICE_4444_NAME=database_sst"
- "-p 4567:4567 -e SERVICE_4567_NAME=database_mon"
- "-p 4568:4568 -e SERVICE_4568_NAME=database_ssi"
- "-e CLUSTER=database"
dockerfile: /home/core/share/database
command: /app/bin/boot
maxscale:
repository: maxscale
docker_options:
- "-e ETCD_HOST=$COREOS_PRIVATE_IPV4"
- "-e HOST=$COREOS_PRIVATE_IPV4"
- "-e SERVICE_NAME=maxscale"
- "-p 4008:4008 -e SERVICE_4008_NAME=lb_read"
- "-p 4006:4006 -e SERVICE_4006_NAME=lb_rw"
dockerfile: /home/core/share/maxscale
command: /app/bin/boot