49 lines
1.5 KiB
Text
49 lines
1.5 KiB
Text
|
version: "3.9"
|
||
|
|
||
|
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:latest"
|
||
|
container_name: ryot
|
||
|
networks:
|
||
|
- internal
|
||
|
- proxy
|
||
|
environment:
|
||
|
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/postgres
|
||
|
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
|