computer-playbook/roles/docker-listmonk/templates/docker-compose.yml.j2

36 lines
796 B
Plaintext
Raw Normal View History

2023-11-18 14:11:48 +01:00
version: "3.7"
services:
2023-12-05 14:37:50 +01:00
database:
image: postgres:13-alpine
ports:
- "9432:5432"
environment:
- POSTGRES_PASSWORD={{database_password}}
- POSTGRES_USER={{database_username}}
- POSTGRES_DB={{database_databasename}}
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U {{database_username}}"]
interval: 10s
timeout: 5s
retries: 6
2023-11-18 14:11:48 +01:00
volumes:
- type: volume
2023-12-26 15:58:56 +01:00
source: database
2023-11-18 14:11:48 +01:00
target: /var/lib/postgresql/data
2023-12-05 14:37:50 +01:00
application:
restart: unless-stopped
image: listmonk/listmonk:latest
ports:
- "127.0.0.1:{{http_port}}:9000"
environment:
- TZ=Etc/UTC
2023-11-18 14:11:48 +01:00
depends_on:
2023-12-05 14:37:50 +01:00
- database
2023-11-18 14:11:48 +01:00
volumes:
- ./config.toml:/listmonk/config.toml
2023-12-05 13:46:06 +01:00
2023-11-18 14:11:48 +01:00
volumes:
2023-12-26 15:58:56 +01:00
database: