version: “2”
services:
anthias-wifi-connect:
image: screenly/anthias-wifi-connect:${GIT_SHORT_HASH}-${BOARD}
build:
context: .
dockerfile: ./docker/Dockerfile.wifi-connect
depends_on:
environment:
PORTAL_LISTENING_PORT: 8000
CHECK_CONN_FREQ: 10
PORTAL_SSID: ‘Anthias WiFi Connect’
DBUS_SYSTEM_BUS_ADDRESS: ‘unix:path=/host/run/dbus/system_bus_socket’
network_mode: host
privileged: true
labels:
io.balena.features.dbus: “1”
io.balena.features.firmware: “1”
anthias-server:
image: screenly/anthias-server:${GIT_SHORT_HASH}-${BOARD}
build:
context: .
dockerfile: ./docker/Dockerfile.server
environment:
devices:
restart: always
volumes:
labels:
io.balena.features.supervisor-api: ‘1’
anthias-viewer:
image: screenly/anthias-viewer:${GIT_SHORT_HASH}-${BOARD}
build:
context: .
dockerfile: ./docker/Dockerfile.viewer
depends_on:
environment:
HOME=/data
PORT=80
NOREFRESH=1
LISTEN=anthias-nginx
extra_hosts:
- “host.docker.internal:host-gateway”
privileged: true
restart: always
shm_size: ${SHM_SIZE}
volumes:
labels:
io.balena.features.supervisor-api: ‘1’
anthias-websocket:
image: screenly/anthias-websocket:${GIT_SHORT_HASH}-${BOARD}
build:
context: .
dockerfile: ./docker/Dockerfile.websocket
depends_on:
environment:
HOME=/data
LISTEN=0.0.0.0
restart: always
volumes:
anthias-celery:
image: screenly/anthias-celery:${GIT_SHORT_HASH}-${BOARD}
build:
context: .
dockerfile: ./docker/Dockerfile.celery
depends_on:
environment:
devices:
restart: always
volumes:
labels:
io.balena.features.supervisor-api: ‘1’
redis:
image: screenly/anthias-redis:${GIT_SHORT_HASH}-${BOARD}
build:
context: .
dockerfile: ./docker/Dockerfile.redis
ports:
restart: always
volumes:
- redis-data:/var/lib/redis
anthias-nginx:
image: screenly/anthias-nginx:${GIT_SHORT_HASH}-${BOARD}
build:
context: .
dockerfile: ./docker/Dockerfile.nginx
ports:
environment:
depends_on:
anthias-server
anthias-websocket
restart: always
volumes:
volumes:
resin-data:
redis-data: