-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (45 loc) · 1.36 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
version: '3'
services:
volkszaehler:
# image: volkszaehler/volkszaehler
image: stefanschoof/volkszaehler
volumes:
- ./volkszaehler.yaml:/vz/etc/config.yaml
ports:
- 8080:8080
# NOTE: The init command will only work once the database is fully up and running.
# By putting restart: always docker-compose will retry starting this container
# and finally complete the database setup sequence.
command: >
sh -c "(/vz/bin/doctrine orm:schema-tool:update --force ||
/vz/bin/doctrine orm:schema-tool:create) && /vz/vendor/bin/ppm start -c
/vz/etc/middleware.json --static-directory /vz/htdocs
--cgi-path=/usr/local/bin/php --workers=1"
networks:
- volkszaehler
- traefik
restart: always
labels:
- "traefik.enable=true"
- "traefik.http.services.volkszaehler.loadbalancer.server.port=8080"
- "traefik.docker.network=traefik"
- "com.centurylinklabs.watchtower.monitor-only=true"
vzlogger:
build:
context: .
dockerfile: Dockerfile.vzlogger
volumes:
- ./vzlogger.conf:/etc/vzlogger.conf
ports:
- 8081:8081
devices:
- /dev/ttyUSBir:/dev/ttyUSB0
networks:
- volkszaehler
restart: always
labels:
- "com.centurylinklabs.watchtower.enable=false"
networks:
volkszaehler: null
traefik:
external: true