50 lines
1.7 KiB
YAML
50 lines
1.7 KiB
YAML
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
restart: unless-stopped
|
|
container_name: ryot_db
|
|
networks:
|
|
- internal
|
|
volumes:
|
|
- {{ server.work_dir }}/ryot/db:/var/lib/postgresql/data
|
|
environment:
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_DB: postgres
|
|
logging:
|
|
driver: loki
|
|
options:
|
|
loki-url: "https://lokidoki:vEGH5Z5siWgcDkNknvCVzPCyqhHSBJCBjeBRZJvxUP8SdgfxJ6AqCGutCWugGsx5@loki.mrdev023.fr/loki/api/v1/push"
|
|
mode: non-blocking
|
|
|
|
ryot:
|
|
image: "ghcr.io/ignisda/ryot:v7"
|
|
restart: unless-stopped
|
|
container_name: ryot
|
|
networks:
|
|
- internal
|
|
- proxy
|
|
environment:
|
|
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/postgres
|
|
- VIDEO_GAMES_TWITCH_CLIENT_ID={{ amazon.client_id }}
|
|
- VIDEO_GAMES_TWITCH_CLIENT_SECRET={{ amazon.client_secret }}
|
|
- SERVER_PRO_KEY={{ ryot.server_pro_key }}
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.ryot-secure.entrypoints=https"
|
|
- "traefik.http.routers.ryot-secure.rule=Host(`ryot.{{ server.domain }}`)"
|
|
- "traefik.http.routers.ryot-secure.tls=true"
|
|
- "traefik.http.routers.ryot-secure.tls.certresolver=sslResolver"
|
|
- "traefik.http.services.ryot.loadbalancer.server.port=8000"
|
|
- "traefik.http.routers.ryot-secure.middlewares=private-network@file"
|
|
- "traefik.docker.network=proxy"
|
|
logging:
|
|
driver: loki
|
|
options:
|
|
loki-url: "https://lokidoki:vEGH5Z5siWgcDkNknvCVzPCyqhHSBJCBjeBRZJvxUP8SdgfxJ6AqCGutCWugGsx5@loki.mrdev023.fr/loki/api/v1/push"
|
|
mode: non-blocking
|
|
|
|
networks:
|
|
internal:
|
|
proxy:
|
|
external: true
|