mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-30 00:11:03 +01:00
36 lines
796 B
Django/Jinja
36 lines
796 B
Django/Jinja
version: "3.7"
|
|
|
|
services:
|
|
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
|
|
volumes:
|
|
- type: volume
|
|
source: database
|
|
target: /var/lib/postgresql/data
|
|
|
|
application:
|
|
restart: unless-stopped
|
|
image: listmonk/listmonk:latest
|
|
ports:
|
|
- "127.0.0.1:{{http_port}}:9000"
|
|
environment:
|
|
- TZ=Etc/UTC
|
|
depends_on:
|
|
- database
|
|
volumes:
|
|
- ./config.toml:/listmonk/config.toml
|
|
|
|
volumes:
|
|
database: |