51 lines
1.0 KiB
YAML
51 lines
1.0 KiB
YAML
version: "3.8"
|
|
|
|
services:
|
|
caption-local:
|
|
build:
|
|
context: ./caption-local
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "8765:8765"
|
|
volumes:
|
|
- caption-local-cache:/app/cache
|
|
environment:
|
|
- PYTHONUNBUFFERED=1
|
|
networks:
|
|
- caption
|
|
restart: unless-stopped
|
|
|
|
captionninja-relay:
|
|
build:
|
|
context: ./captionninja/relay
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "127.0.0.1:8787:8787"
|
|
environment:
|
|
- PORT=8787
|
|
- HOST=0.0.0.0
|
|
- CAPTION_RELAY_CONFIG=/run/rooms.json
|
|
volumes:
|
|
- ${CAPTION_RELAY_CONFIG:-./captionninja/relay/.caption-ninja-relay.private.json}:/run/rooms.json:ro
|
|
networks:
|
|
- caption
|
|
restart: unless-stopped
|
|
|
|
captionninja-web:
|
|
image: nginx:alpine
|
|
ports:
|
|
- "8080:80"
|
|
volumes:
|
|
- ./captionninja:/usr/share/nginx/html:ro
|
|
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
|
networks:
|
|
- caption
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
caption-local-cache:
|
|
|
|
networks:
|
|
caption:
|
|
driver: bridge
|