57 lines
1.0 KiB
Markdown
57 lines
1.0 KiB
Markdown
|
|
# 03_compose_translation.md
|
||
|
|
|
||
|
|
# Compose Translation
|
||
|
|
|
||
|
|
Ziel: vorhandenes Compose nach Coolify übersetzen, ohne App-Topologie zu zerstören.
|
||
|
|
|
||
|
|
## Regeln
|
||
|
|
|
||
|
|
```text
|
||
|
|
Compose-konform ≠ Coolify-kompatibel.
|
||
|
|
HTTP-ports meist entfernen; Domain-Port auf internen Port setzen.
|
||
|
|
TCP-ports behalten, wenn externes Protokoll nötig ist.
|
||
|
|
localhost durch Service-Namen ersetzen.
|
||
|
|
container_name vermeiden.
|
||
|
|
depends_on ist keine Readiness-Garantie.
|
||
|
|
Volumes auf Persistenz prüfen.
|
||
|
|
Secrets nicht in Compose hardcodieren.
|
||
|
|
```
|
||
|
|
|
||
|
|
## Public/Internal
|
||
|
|
|
||
|
|
```yaml
|
||
|
|
service:
|
||
|
|
public: true|false
|
||
|
|
protocol: http|tcp|grpc
|
||
|
|
internal_port:
|
||
|
|
host_port_needed: true|false
|
||
|
|
domain_needed: true|false
|
||
|
|
```
|
||
|
|
|
||
|
|
## Transformationspunkte
|
||
|
|
|
||
|
|
```text
|
||
|
|
ports/expose
|
||
|
|
environment
|
||
|
|
volumes
|
||
|
|
networks
|
||
|
|
depends_on + healthcheck
|
||
|
|
nginx/apache/gateway
|
||
|
|
init/migration jobs
|
||
|
|
worker/scheduler
|
||
|
|
docker.sock/privileged/devices
|
||
|
|
```
|
||
|
|
|
||
|
|
## Stop
|
||
|
|
|
||
|
|
Nicht transformieren, wenn unklar:
|
||
|
|
|
||
|
|
```text
|
||
|
|
öffentlicher Entry Point
|
||
|
|
welche Services intern bleiben
|
||
|
|
Persistenzpfade
|
||
|
|
Secrets
|
||
|
|
Healthcheck
|
||
|
|
Gateway-Funktion
|
||
|
|
```
|