chore: AdamuSw deploy composes (local test + Coolify/Traefik prod) using self-built image
Some checks failed
.NET Core / build (push) Has been cancelled

- deploy-adamu/docker-compose.local.yml: local postgres + adamu-openmu:dev, direct 8080
- deploy-adamu/docker-compose.prod.yml: Coolify/Traefik prod adapted from AdaMu, image swapped to our build
- additive folder (deploy-adamu) to avoid upstream deploy/ merge conflicts
- plan Step5 fixed (-p:ci=true), paths -> deploy-adamu

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Acentech Dev
2026-07-14 19:31:07 +03:00
parent 6aba2dd3c9
commit 2e59cdfe1f
3 changed files with 96 additions and 6 deletions

View File

@@ -0,0 +1,53 @@
# 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:
image: ${OPENMU_IMAGE:-atfatmc/adamu-openmu:latest} # <-- kendi DockerHub image'imiz (Task 3)
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: