forked from groovytron/maracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
100 lines (92 loc) · 2.58 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
89
90
91
92
93
94
95
96
97
98
99
100
version: '2'
services:
postgres:
restart: always
image: postgres:latest
network_mode: host
maracker:
restart: always
build: .
network_mode: host
depends_on:
- postgres
environment:
- DB_HOST=localhost
- DB_NAME=postgres
# command: bash -c "python manage.py migrate && uwsgi --http :8000 --wsgi-file maracker/wsgi.py --static-map /static=/var/www/maracker/static"
# For local testing
ports:
- "8000:8000"
zoo1:
image: zookeeper:3.4
network_mode: host
ports:
- 2181:2181
mesos-master:
image: mesosphere/mesos-master:1.3.0
network_mode: host
environment:
- MESOS_CLUSTER=local
- MESOS_ZK=zk://127.0.0.1:2181/mesos
- MESOS_IP=127.0.0.1
- MESOS_QUORUM=1
- MESOS_WORK_DIR=/var/lib/mesos
mesos-slave:
image: mesosphere/mesos-slave:1.3.0
network_mode: host
privileged: true
environment:
- MESOS_PORT=5051
- MESOS_MASTER=zk://127.0.0.1:2181/mesos
- MESOS_IP=127.0.0.1
- MESOS_CONTAINERIZERS=docker,mesos
- MESOS_WORK_DIR=/var/lib/mesos
- MESOS_SWITCH_USER=0
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup
- /usr/bin/docker:/usr/bin/docker.so
- /var/run/docker.sock:/var/run/docker.sock
marathon:
image: mesosphere/marathon:v1.4.5
network_mode: host
ports:
- 8080:8080
environment:
- MARATHON_ZK=zk://127.0.0.1:2181/marathon
- MARATHON_MASTER=zk://127.0.0.1:2181/mesos
- MARATHON_HOSTNAME=127.0.0.1
- LIBPROCESS_IP=127.0.0.1
command: --event_subscriber http_callback
labels:
- "traefik.backend=marathon"
- "traefik.frontend.rule=Host:marathon.localhost"
- "traefik.port=8080"
chronos:
image: mesosphere/chronos:v3.0.2
network_mode: host
environment:
- PORT0=4400
- PORT1=8081
- LIBPROCESS_IP=127.0.0.1
command: --hostname 127.0.0.1 --zk_hosts 127.0.0.1:2181 --master zk://127.0.0.1:2181/mesos
labels:
- "traefik.backend=chronos"
- "traefik.frontend.rule=Host:chronos.localhost"
- "traefik.port=4400"
proxy:
image: traefik:1.3-alpine
network_mode: host
hostname: proxy
domainname: marathon.localhost
volumes:
- ./traefik.toml:/etc/traefik/traefik.toml
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 8888:8888
- 80:80
- 443:443
command: -c /etc/traefik/traefik.toml --marathon.endpoint=http://127.0.0.1:8080
labels:
- "traefik.backend=traefik"
- "traefik.frontend.rule=Host:traefik.localhost"
- "traefik.port=8888"