nise/nise-infra/docker-compose.yml

110 lines
2.8 KiB
YAML
Raw Normal View History

2024-06-18 11:53:10 +00:00
services:
2024-12-20 17:29:19 +00:00
caddy-main:
image: caddy:alpine
container_name: caddy-main
2024-06-18 11:53:10 +00:00
restart: always
volumes:
2024-12-20 17:29:19 +00:00
- ./Caddyfile:/etc/caddy/Caddyfile:ro
2024-06-18 11:53:10 +00:00
ports:
- "443:443"
- "80:80"
2024-12-20 17:48:19 +00:00
depends_on:
- nise-nginx
2024-06-18 11:53:10 +00:00
# Shared services which are used by others
redis:
image: redis:alpine
container_name: redis
restart: always
2024-12-20 17:48:19 +00:00
postgres:
image: postgres:alpine
container_name: postgres
2024-06-18 11:53:10 +00:00
restart: always
environment:
2024-12-20 17:48:19 +00:00
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASS}
2024-06-18 11:53:10 +00:00
volumes:
2024-12-20 17:48:19 +00:00
- postgres-data:/var/lib/postgresql/data
2024-06-18 11:53:10 +00:00
# ------------------------------------------------------------------
nise-nginx:
image: nginx:latest
container_name: nise-nginx
restart: always
volumes:
- ./nise-data/nginx.conf:/etc/nginx/nginx.conf:ro
2024-12-20 17:48:19 +00:00
depends_on:
- nise-backend
- nise-frontend
nise-circleguard:
image: code.stedos.dev/stedos/nise-circleguard:latest
container_name: nise-circleguard
environment:
OSU_API_KEY: ${OSU_API_KEY}
restart: always
volumes:
- ./nise-data/beatmaps:/app/dbs
2024-06-18 11:53:10 +00:00
nise-backend:
2024-12-20 17:48:19 +00:00
image: code.stedos.dev/stedos/nise-backend:latest
2024-06-18 11:53:10 +00:00
container_name: nise-backend
environment:
2024-12-20 17:48:19 +00:00
SPRING_PROFILES_ACTIVE: postgres,import:scores,import:users,fix:scores
2024-06-18 11:53:10 +00:00
# App configuration
OLD_SCORES_PAGE_SIZE: 1000
# Postgres
POSTGRES_HOST: ${DB_HOST}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASS: ${DB_PASS}
2024-12-20 17:48:19 +00:00
POSTGRES_DB: ${DB_NAME}
2024-06-18 11:53:10 +00:00
# redis
REDIS_DB: 4
# Discord
WEBHOOK_URL: ${WEBHOOK_URL}
SCORES_WEBHOOK_URL: ${SCORES_WEBHOOK_URL}
# osu!api
OSU_API_KEY: ${OSU_API_KEY}
OSU_CLIENT_ID: ${OSU_CLIENT_ID}
OSU_CLIENT_SECRET: ${OSU_CLIENT_SECRET}
2024-12-20 17:48:19 +00:00
OSU_CALLBACK: "https://nise.stedos.dev/api/login/oauth2/code/osu"
2024-06-18 11:53:10 +00:00
# Metabase
METABASE_API_KEY: ${METABASE_API_KEY}
# Internal API
CIRCLEGUARD_API_URL: http://nise-circleguard:5000
# Auth
2024-12-20 17:48:19 +00:00
ORIGIN: "https://nise.stedos.dev"
2024-06-18 11:53:10 +00:00
REPLAY_ORIGIN: "https://replay.nise.moe"
COOKIE_SECURE: false
BEATMAPS_PATH: "/app/dbs"
2024-12-20 17:48:19 +00:00
# Replay cache
REPLAY_CACHE_ENABLED: ${REPLAY_CACHE_ENABLED}
REPLAY_CACHE_HOST: ${REPLAY_CACHE_HOST}
REPLAY_CACHE_PORT: ${REPLAY_CACHE_PORT}
REPLAY_CACHE_DB: ${REPLAY_CACHE_DB}
REPLAY_CACHE_USER: ${REPLAY_CACHE_USER}
REPLAY_CACHE_PASS: ${REPLAY_CACHE_PASS}
2024-06-18 11:53:10 +00:00
restart: always
volumes:
- ./nise-data/beatmaps:/app/dbs
depends_on:
- postgres
- redis
2024-12-20 17:48:19 +00:00
- nise-circleguard
2024-06-18 11:53:10 +00:00
2024-12-20 17:48:19 +00:00
nise-frontend:
image: code.stedos.dev/stedos/nise-frontend:latest
container_name: nise-frontend
2024-06-18 11:53:10 +00:00
restart: always
2025-05-14 17:13:29 +00:00
nise-replay-viewer:
image: code.stedos.dev/stedos/nise-replay-viewer:latest
container_name: nise-replay-viewer
restart: always
2024-06-18 11:53:10 +00:00
volumes:
2025-05-14 17:13:29 +00:00
postgres-data: