-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathdocker-compose.yml
61 lines (55 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
# Base docker compose, added to by docker-compose.override or docker-compose.prod. See Readme.md
version: '2'
services:
# PHP & apache container using offical Docker PHP iamge
web:
# If pre-built image from docker hub exists then use that (docker pull openenergymonitor/emoncms:latest) if not build container see web/Dockerflile
image: openenergymonitor/emoncms:latest
build: web/.
volumes:
# mount docker volumes persistant inside docker container
- emon-phpfina:/var/opt/emoncms/phpfina
- emon-phptimeseries:/var/opt/emoncms/phptimeseries
links:
- db
- redis
- mqtt
db:
image: mariadb:11.0
environment:
- "MYSQL_HOST=localhost"
- "MARIADB_AUTO_UPGRADE=1"
- "MARIADB_INITDB_SKIP_TZINFO=1"
volumes:
- emon-db-data:/var/lib/mysql
logging:
driver: json-file
options:
max-size: "10m"
redis:
image: redis:7.0
volumes:
- emon-redis-data:/data
logging:
driver: json-file
options:
max-size: "10m"
mqtt:
image: eclipse-mosquitto:2.0
build: mqtt/.
restart: always
logging:
driver: json-file
options:
max-size: "10m"
volumes:
emon-phpfiwa:
driver: local
emon-phpfina:
driver: local
emon-phptimeseries:
driver: local
emon-db-data:
driver: local
emon-redis-data:
driver: local