diff --git a/tidbyt/docker-compose.yaml b/tidbyt/docker-compose.yaml new file mode 100644 index 0000000..2b836ac --- /dev/null +++ b/tidbyt/docker-compose.yaml @@ -0,0 +1,60 @@ +version: "2.8" + +services: + web: + container_name: tronbyt-server + image: ghcr.io/tronbyt/server:latest + restart: unless-stopped + ports: + - "${SERVER_PORT}:8000" # Map server port on the host to port 8000 in the container + user: "tronbyt:tronbyt" + init: true + volumes: + - "/etc/localtime:/etc/localtime:ro" # used to sync docker with host time + - users:/app/users + - data:/app/data + environment: + - SERVER_HOSTNAME=${SERVER_HOSTNAME_OR_IP:?SERVER_HOSTNAME_OR_IP MUST BE SET IN .env FILE !!!!!!!!!!!!!!!!!.} + - SERVER_PORT + - SYSTEM_APPS_REPO + - PRODUCTION + healthcheck: + test: ["CMD", "python3", "/app/healthcheck.py", "http://localhost:8000/health"] + interval: 1m30s + timeout: 10s + retries: 3 + start_period: 10s + + tidbyt-plex: + image: mdouglas/pixlet-push:latest + container_name: tidbyt-plex + restart: always + stdin_open: true + tty: true + environment: + - PIXLET_API_TOKEN=${API_TOKEN} + - PIXLET_INSTALLATION_ID=plextrack + - PIXLET_DEVICE_ID=${DEVICE_ID} + volumes: + - /srv/tidbyt/tidbyt_community/apps/plextracks/plextracks.star:/app.star + tidbyt-octoprint: + image: mdouglas/pixlet-push:latest + container_name: tidbyt-octoprint + restart: always + stdin_open: true + tty: true + environment: + - PIXLET_API_TOKEN=${API_TOKEN} + - PIXLET_INSTALLATION_ID=octoprint + - PIXLET_DEVICE_ID=${DEVICE_ID} + volumes: + - /srv/tidbyt/tidbyt_community/apps/octoprintstatus/octoprint_status.star:/app.star + +volumes: + users: + data: + +networks: + default: + external: + name: nginx-network \ No newline at end of file