Files
AdamuSw/deploy-adamu/docker-compose.prod.yml
Acentech Dev df338578d1
Some checks failed
.NET Core / build (push) Has been cancelled
Pin the production image to the OpenMU upstream Dalga A release (d60aad7d2f)
2026-08-13 09:27:10 +03:00

59 lines
1.9 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# AdamuSw production deploy (Coolify + Traefik)
# Mevcut AdaMu prod kurulumundan uyarlandı; TEK fark: image artık kendi build'imiz.
# Image, Faz 0a Task 3'te DockerHub'a push edilecek. Coolify'da OPENMU_IMAGE env'i
# set edilirse onu, edilmezse aşağıdaki default'u kullanır.
services:
openmu-startup:
# Production'da DAIMA commit-SHA etiketi kullanilir, asla :latest. :latest degisken
# bir isim oldugu icin Coolify onu yerelde tanidiginda yeniden cekmez ve eski katman
# sessizce calismaya devam eder (2026-07-31'de tam olarak bu oldu: sunucu 26 Temmuz
# image'ini calistiriyordu). SHA etiketi daha once gorulmedigi icin pull zorunlu olur.
# Yeni surum yayinlarken bu satiri yeni SHA ile guncelle.
image: ${OPENMU_IMAGE:-atfatmc/adamu-openmu:d60aad7d2f55}
container_name: openmu-startup
networks:
- coolify
ports:
- "55901:55901"
- "55902:55902"
- "55903:55903"
- "55904:55904"
- "55905:55905"
- "55906:55906"
- "44405:44405"
- "55980:55980"
environment:
DB_HOST: database
working_dir: /app/
depends_on:
- database
labels:
- "traefik.enable=true"
- "traefik.docker.network=coolify"
- "traefik.http.routers.openmu.entrypoints=https"
- "traefik.http.routers.openmu.middlewares=auth"
- 'traefik.http.middlewares.auth.basicauth.users=adios:$2b$12$wUA5rxsUOhT2JbFfA3NJ6u52zaVVpWuzdl2DPomSE7n..0FqYrk02'
- "traefik.http.routers.openmu.rule=Host(`${SERVICE_FQDN_OPENMU_STARTUP}`)"
- "traefik.http.services.openmu.loadbalancer.server.port=8080"
database:
image: postgres
container_name: database
environment:
POSTGRES_PASSWORD: admin
POSTGRES_DB: openmu
POSTGRES_USER: postgres
networks:
- coolify
ports:
- "5432"
volumes:
- dbdata:/var/lib/postgresql #store data on volume
networks:
coolify:
external: true
volumes:
dbdata: