46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
services:
|
|
mailarchive-app:
|
|
image: s1t5/mailarchiver:latest
|
|
restart: always
|
|
environment:
|
|
# Database Connection
|
|
- ConnectionStrings__DefaultConnection=Host=postgres;Database=MailArchiver;Username=mailuser;Password=masterkey;
|
|
|
|
# Authentication Settings
|
|
- Authentication__Username=admin
|
|
- Authentication__Password=secure123!
|
|
|
|
# TimeZone Settings
|
|
- TimeZone__DisplayTimeZoneId=Etc/UCT
|
|
ports:
|
|
- "5000:5000"
|
|
networks:
|
|
- postgres
|
|
volumes:
|
|
- ./data-protection-keys:/app/DataProtection-Keys
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
|
|
|
|
postgres:
|
|
image: postgres:17-alpine
|
|
restart: always
|
|
environment:
|
|
POSTGRES_DB: MailArchiver
|
|
POSTGRES_USER: mailuser
|
|
POSTGRES_PASSWORD: masterkey
|
|
volumes:
|
|
- ./postgres-data:/var/lib/postgresql/data
|
|
networks:
|
|
- postgres
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U mailuser -d MailArchiver"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 10s
|
|
|
|
networks:
|
|
postgres:
|