Files
AdamuSw/deploy-adamu/docker-compose.prod.yml
Acentech Dev 0fdb455cec
Some checks failed
.NET Core / build (push) Has been cancelled
Pin the production image to a commit-SHA tag instead of :latest
Coolify does not re-pull a tag it already knows locally, so :latest silently
kept the server on a stale layer. On 2026-07-31 production was still running
the 26 July image while DockerHub :latest pointed at a newer digest, which is
why update 104 never appeared in the admin panel.

A commit-SHA tag has never been seen by the host, so the pull is unavoidable.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 15:37:42 +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:452f0bb139de}
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: