27 lines
635 B
YAML
27 lines
635 B
YAML
services:
|
|
mail-admin:
|
|
container_name: mail-s3-admin
|
|
build: .
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- DATABASE_URL=postgresql://postgres:password@postgres:5433/mydb?schema=public
|
|
# ... deine bestehenden Env-Vars (AWS, SMTP, APP_PASSWORD)
|
|
depends_on:
|
|
- postgres
|
|
|
|
postgres:
|
|
container_name: mail-s3-admin-db
|
|
image: postgres:latest
|
|
restart: always
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: fiesta # Ändere das!
|
|
POSTGRES_DB: mydb
|
|
ports:
|
|
- "5433:5432"
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
|
|
volumes:
|
|
postgres-data: |