forked from emoncms/emoncms-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (49 loc) · 1.28 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
# 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 Buildcontainer see Dockerflile
image: openenergymonitor/emoncms:latest
build: .
volumes:
# mount docker volumes persistant inside docker container
- emon-phpfina:/var/opt/emoncms/phpfina
- emon-phptimeseries:/var/opt/emoncms/phptimeseries
links:
# Link to MYSQL DB (see below)
- db
- redis
# MYSQL Database
db:
# Official MYSQL docker image
# To do: make compatiable with 5.7
image: mariadb:latest
environment:
- "MYSQL_HOST=localhost"
volumes:
- emon-db-data:/var/lib/mysql
logging:
driver: json-file
options:
max-size: "10m"
redis:
# Official redis image
image: redis:5
volumes:
- emon-redis-data:/data
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