forked from jimmycleuren/fireping
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
84 lines (76 loc) · 1.38 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
version: '2'
services:
nginx:
image: nginx
depends_on:
- php
ports:
- "80:80"
volumes:
- ./:/app
- ./docker/symfony.conf:/etc/nginx/conf.d/symfony.conf:ro
php:
build: ""
depends_on:
- db
- redis
volumes:
- ./:/app
- rrd:/tmp/fireping/rrd/
working_dir: /app
environment:
MODE: master
DEV: "true"
REDIS_URL: redis://redis
slave:
build: ""
depends_on:
- nginx
volumes:
- ./:/app
working_dir: /app
environment:
MODE: slave
DEV: "true"
SLAVE_NAME: slave
SLAVE_PASSWORD: password
SLAVE_URL: http://nginx
redis:
image: redis
ports:
- "6379:6379"
rrdcached:
image: crazymax/rrdcached
environment:
TZ: "Europe/Paris"
ports:
- "42217:42217"
volumes:
- rrd:/data/db
db:
image: mariadb
ports:
- "3306:3306"
volumes:
- /var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: fireping
MYSQL_USER: fireping
MYSQL_PASSWORD: fireping
testdb:
image: mysql:5.7
ports:
- "3307:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: fireping_test
MYSQL_USER: fireping
MYSQL_PASSWORD: fireping
adminer:
image: adminer
restart: always
ports:
- 8080:8080
volumes:
rrd: