mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-25 15:08:47 -07:00
80 lines
2.0 KiB
YAML
80 lines
2.0 KiB
YAML
services:
|
|
gateway:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.service
|
|
args:
|
|
PROJECT_PATH: DorkNet.Gateway/DorkNet.Gateway.csproj
|
|
APP_DLL: DorkNet.Gateway.dll
|
|
environment:
|
|
DORKNET_DOMAIN: ${DORKNET_DOMAIN:?Set DORKNET_DOMAIN in Dokploy}
|
|
DorkNet__Services__Identity: http://identity:8080
|
|
DorkNet__Services__Rooms: http://rooms:8080
|
|
DorkNet__Services__Notify: http://notify:8080
|
|
DorkNet__Services__Monolith: ""
|
|
expose:
|
|
- "8080"
|
|
depends_on:
|
|
- identity
|
|
- rooms
|
|
- notify
|
|
|
|
cloudflared:
|
|
image: cloudflare/cloudflared:latest
|
|
command: tunnel --no-autoupdate run --token ${CLOUDFLARE_TUNNEL_TOKEN:?Set CLOUDFLARE_TUNNEL_TOKEN in Dokploy}
|
|
depends_on:
|
|
- gateway
|
|
restart: unless-stopped
|
|
|
|
identity:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.service
|
|
args:
|
|
PROJECT_PATH: DorkNet.Services.Identity/DorkNet.Services.Identity.csproj
|
|
APP_DLL: DorkNet.Services.Identity.dll
|
|
depends_on:
|
|
- postgres
|
|
- redis
|
|
|
|
rooms:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.service
|
|
args:
|
|
PROJECT_PATH: DorkNet.Services.Rooms/DorkNet.Services.Rooms.csproj
|
|
APP_DLL: DorkNet.Services.Rooms.dll
|
|
environment:
|
|
S3__Endpoint: ${DORKNET_S3_ENDPOINT:-}
|
|
S3__AccessKey: ${DORKNET_S3_ACCESS_KEY:-}
|
|
S3__SecretKey: ${DORKNET_S3_SECRET_KEY:-}
|
|
S3__Region: ${DORKNET_S3_REGION:-garage}
|
|
depends_on:
|
|
- postgres
|
|
- redis
|
|
|
|
notify:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.service
|
|
args:
|
|
PROJECT_PATH: DorkNet.Services.Notify/DorkNet.Services.Notify.csproj
|
|
APP_DLL: DorkNet.Services.Notify.dll
|
|
depends_on:
|
|
- redis
|
|
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
environment:
|
|
POSTGRES_DB: dorknet
|
|
POSTGRES_USER: dorknet
|
|
POSTGRES_PASSWORD: dorknet_dev
|
|
volumes:
|
|
- microservices-postgres:/var/lib/postgresql/data
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
|
|
volumes:
|
|
microservices-postgres:
|