From a4a7bb2e19e1478a8c88636515e8e54a3a67fe3a Mon Sep 17 00:00:00 2001 From: Nick Yeoman Date: Tue, 23 Apr 2024 22:10:17 -0700 Subject: [PATCH] added listmonk --- listmonk/docker-compose.yml | 67 +++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 listmonk/docker-compose.yml diff --git a/listmonk/docker-compose.yml b/listmonk/docker-compose.yml new file mode 100644 index 0000000..7efb0fa --- /dev/null +++ b/listmonk/docker-compose.yml @@ -0,0 +1,67 @@ +# 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. +# https://github.com/knadh/listmonk/blob/master/docker-compose.yml + +version: "3.7" + +x-app-defaults: &app-defaults + restart: unless-stopped + image: listmonk/listmonk:latest + ports: + - "9000: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 + - 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 + + demo-db: + container_name: listmonk_demo_db + <<: *db-defaults + + demo-app: + <<: *app-defaults + container_name: listmonk_demo_app + command: [sh, -c, "yes | ./listmonk --install --config config-demo.toml && ./listmonk --config config-demo.toml"] + depends_on: + - demo-db + +networks: + listmonk: + +volumes: + listmonk-data: \ No newline at end of file