-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
106 lines (98 loc) · 2.52 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
101
102
103
104
105
version: '2'
networks:
front-tier:
driver: bridge
back-tier:
driver: bridge
services:
zenoss4-memcached:
image: memcached:1.4-alpine
container_name: zenoss4-memcached
hostname: zenoss4-memcached
mem_limit: 1g
ports:
- "11211"
networks:
- back-tier
zenoss4-rabbitmq:
image: rabbitmq:3.6
container_name: zenoss4-rabbitmq
hostname: zenoss4-rabbitmq
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "./init_fs/var/lib/rabbitmq:/var/lib/rabbitmq:rw"
depends_on:
- zenoss4-memcached
environment:
- "RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER}"
- "RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS}"
- "RABBITMQ_DEFAULT_VHOST=${RABBITMQ_DEFAULT_VHOST}"
ports:
- "5672"
networks:
- back-tier
zenoss4-redis:
image: redis:3.0-alpine
container_name: zenoss4-redis
hostname: zenoss4-redis
volumes:
- "./init_fs/data:/data:rw"
depends_on:
- zenoss4-rabbitmq
ports:
- "6379"
networks:
- back-tier
zenoss4-mariadb:
image: mariadb:5.5
container_name: zenoss4-mariadb
hostname: zenoss4-mariadb
volumes:
- "./init_fs/docker-entrypoint-initdb.d/init.sh:/docker-entrypoint-initdb.d/init_sql.sh:ro"
- "./init_fs/etc/mysql/conf.d:/etc/mysql/conf.d:ro"
- "./init_fs/tmp/initdb.d:/tmp/initdb.d:ro"
- "./init_fs/var/lib/mysql:/var/lib/mysql:rw"
- "./init_fs/var/log/mysqld.log:/var/log/mysqld.log:rw"
depends_on:
- zenoss4-redis
environment:
- "MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}"
ports:
- "3306"
networks:
- back-tier
zenoss4-core:
image: mcroth/docker-zenoss4
container_name: zenoss4-core
hostname: zenoss4-core
# volumes:
# - "./init_fs/usr/local/zenoss/log:/usr/local/zenoss/log:rw"
# - "./init_fs/usr/local/zenoss/ZenPacks:/usr/local/zenoss/ZenPacks:rw"
links:
- zenoss4-memcached
- zenoss4-rabbitmq
- zenoss4-redis
- zenoss4-mariadb
depends_on:
- zenoss4-mariadb
ports:
- "8080"
networks:
- back-tier
zenoss4-nginx:
image: nginx:alpine
container_name: zenoss4-nginx
hostname: zenoss4-nginx
volumes:
- "./init_fs/etc/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf:ro"
# - "./init_fs/etc/nginx/ssl:/etc/nginx/ssl:ro"
links:
- zenoss4-core
depends_on:
- zenoss4-core
ports:
- "80:80"
# - "443:443"
networks:
- back-tier
- front-tier