mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 20:51:07 +01:00
45 lines
961 B
Django/Jinja
45 lines
961 B
Django/Jinja
version: "3.7"
|
|
|
|
services:
|
|
database:
|
|
image: postgres:13-alpine
|
|
ports:
|
|
- "9432:5432"
|
|
networks:
|
|
- listmonk
|
|
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
|
|
container_name: database
|
|
volumes:
|
|
- type: volume
|
|
source: listmonk-data
|
|
target: /var/lib/postgresql/data
|
|
|
|
application:
|
|
restart: unless-stopped
|
|
image: listmonk/listmonk:latest
|
|
ports:
|
|
- "127.0.0.1:{{http_port}}:9000"
|
|
networks:
|
|
- listmonk
|
|
environment:
|
|
- TZ=Etc/UTC
|
|
container_name: listmonk_application
|
|
depends_on:
|
|
- database
|
|
volumes:
|
|
- ./config.toml:/listmonk/config.toml
|
|
|
|
networks:
|
|
listmonk:
|
|
|
|
volumes:
|
|
listmonk-data: |