-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 1.48 KB
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (46 loc) · 1.48 KB
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
services:
volkszaehler:
image: volkszaehler/volkszaehler
volumes:
- ./volkszaehler.yaml:/vz/etc/config.yaml
- ./options.js:/vz/htdocs/js/options.js
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.http.middlewares.volkszaehler.compress=true"
- "traefik.docker.network=traefik"
- "traefik.http.routers.volkszaehler.middlewares=auth"
- "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