mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-10 06:51:04 +01:00
55 lines
1.1 KiB
Django/Jinja
55 lines
1.1 KiB
Django/Jinja
# NOTE: This docker-compose.yml is meant to be just an example guideline
|
|
# on how you can achieve the same. It is not intented to run out of the box
|
|
# and you must edit the below configurations to suit your needs.
|
|
|
|
version: "3.7"
|
|
|
|
x-app-defaults: &app-defaults
|
|
restart: unless-stopped
|
|
image: listmonk/listmonk:latest
|
|
ports:
|
|
- "127.0.0.1:{{http_port}}:9000"
|
|
networks:
|
|
- listmonk
|
|
environment:
|
|
- TZ=Etc/UTC
|
|
|
|
x-db-defaults: &db-defaults
|
|
image: postgres:13-alpine
|
|
ports:
|
|
- "9432:5432"
|
|
networks:
|
|
- listmonk
|
|
environment:
|
|
- POSTGRES_PASSWORD={{listmonk_database_password}}
|
|
- POSTGRES_USER=listmonk
|
|
- POSTGRES_DB=listmonk
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U listmonk"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 6
|
|
|
|
services:
|
|
db:
|
|
<<: *db-defaults
|
|
container_name: listmonk_db
|
|
volumes:
|
|
- type: volume
|
|
source: listmonk-data
|
|
target: /var/lib/postgresql/data
|
|
|
|
app:
|
|
<<: *app-defaults
|
|
container_name: listmonk_app
|
|
depends_on:
|
|
- db
|
|
volumes:
|
|
- ./config.toml:/listmonk/config.toml
|
|
|
|
networks:
|
|
listmonk:
|
|
|
|
volumes:
|
|
listmonk-data: |