[DEPRECATED] Go implementation of plcbundle
1networks:
2 plcbundle:
3
4services:
5 plcbundle:
6 build: .
7 image: atscan/plcbundle:latest
8 container_name: plcbundle
9 restart: unless-stopped
10
11 ports:
12 - "${HTTP_PORT:-8080}:8080"
13
14 volumes:
15 - ${DATA_DIR:-./data}:/data
16
17 environment:
18 - TZ=${TZ:-UTC}
19
20 command: >
21 serve
22 --host 0.0.0.0
23 --port 8080
24 --sync
25 --websocket
26
27 networks:
28 - plcbundle
29
30 # watchtower for automatic updates
31 watchtower:
32 container_name: watchtower
33 image: containrrr/watchtower:latest
34 network_mode: host
35 volumes:
36 - type: bind
37 source: /var/run/docker.sock
38 target: /var/run/docker.sock
39 restart: unless-stopped
40 environment:
41 WATCHTOWER_CLEANUP: true
42 WATCHTOWER_SCHEDULE: "@midnight"
43
44# Optional: Caddy reverse proxy
45#
46# services:
47# caddy:
48# image: caddy:2-alpine
49# restart: unless-stopped
50# ports:
51# - "80:80"
52# - "443:443"
53# - "443:443/udp"
54# volumes:
55# - caddy_data:/data
56# environment:
57# - DOMAIN=${DOMAIN:-localhost}
58# command: caddy reverse-proxy --from ${DOMAIN:-localhost} --to plcbundle:8080
59# depends_on:
60# - plcbundle
61# networks:
62# - plcbundle
63#
64# volumes:
65# caddy_data: