version: "3.8" services: postgres: image: postgres:14 restart: always environment: - POSTGRES_USER=listmonk - POSTGRES_PASSWORD - POSTGRES_DB=listmonk volumes: - ./data/postgres:/var/lib/postgresql/data/ healthcheck: test: pg_isready -U listmonk -d listmonk interval: 10s timeout: 5s retries: 5 listmonk: image: listmonk/listmonk:latest restart: always environment: - TZ=America/Chicago volumes: - ./config.toml:/listmonk/config.toml - ./data/listmonk/uploads:/listmonk/uploads/ ports: - 127.0.0.1:85:9000 depends_on: - postgres