Files
FEDEO/docker-compose.yml
2024-02-04 20:21:09 +01:00

60 lines
2.9 KiB
YAML

version: "3"
services:
web:
image: registry.gitlab.com/cmykmedia/spaces:main-WEB
restart: always
networks:
- traefik
environment:
SUPABASE_URL: "https://uwppvcxflrcsibuzsbil.supabase.co"
SUPABASE_KEY: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InV3cHB2Y3hmbHJjc2lidXpzYmlsIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MDA5MzgxOTQsImV4cCI6MjAxNjUxNDE5NH0.CkxYSQH0uLfwx9GVUlO6AYMU2FMLAxGMrwEKvyPv7Oo"
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik"
- "traefik.port=3000"
# Middlewares
- "traefik.http.middlewares.spaces-frontend-redirect-web-secure.redirectscheme.scheme=https"
# Web Entrypoint
- "traefik.http.routers.spaces-frontend.middlewares=spaces-frontend-redirect-web-secure"
- "traefik.http.routers.spaces-frontend.rule=Host(`app.spaces.software`)"
- "traefik.http.routers.spaces-frontend.entrypoints=web"
# Web Secure Entrypoint
- "traefik.http.routers.spaces-frontend-secure.rule=Host(`app.spaces.software`)"
- "traefik.http.routers.spaces-frontend-secure.entrypoints=web-secured" #
- "traefik.http.routers.spaces-frontend-secure.tls.certresolver=mytlschallenge"
imapsync:
image: registry.gitlab.com/cmykmedia/spaces:main-IMAPSYNC
restart: always
environment:
SUPABASE_URL: "https://uwppvcxflrcsibuzsbil.supabase.co"
SUPABASE_KEY: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InV3cHB2Y3hmbHJjc2lidXpzYmlsIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTcwMDkzODE5NCwiZXhwIjoyMDE2NTE0MTk0fQ.6hOkD1J8XBkVJUm-swv0ngLQ74xrEYr28EEbo0rUrts"
INTERVAL: 30
hardwaregateway:
image: registry.gitlab.com/cmykmedia/spaces:main-HARDWAREGATEWAY
restart: always
networks:
- traefik
environment:
SUPABASE_URL: "https://uwppvcxflrcsibuzsbil.supabase.co"
SUPABASE_SERVICE_ROLE_KEY: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InV3cHB2Y3hmbHJjc2lidXpzYmlsIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTcwMDkzODE5NCwiZXhwIjoyMDE2NTE0MTk0fQ.6hOkD1J8XBkVJUm-swv0ngLQ74xrEYr28EEbo0rUrts"
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik"
- "traefik.port=3000"
# Middlewares
- "traefik.http.middlewares.spaces-gateway-redirect-web-secure.redirectscheme.scheme=https"
# Web Entrypoint
- "traefik.http.routers.spaces-gateway.middlewares=spaces-gateway-redirect-web-secure"
- "traefik.http.routers.spaces-gateway.rule=Host(`gw.spaces.software`)"
- "traefik.http.routers.spaces-gateway.entrypoints=web"
# Web Secure Entrypoint
- "traefik.http.routers.spaces-gateway-secure.rule=Host(`gw.spaces.software`)"
- "traefik.http.routers.spaces-gateway-secure.entrypoints=web-secured" #
- "traefik.http.routers.spaces-gateway-secure.tls.certresolver=mytlschallenge"
networks:
traefik:
external: true