diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..243b1a0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +data/ +.env +config.toml diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..dd0f15c --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,29 @@ +version: "3.8" +services: + postgres: + image: postgres:14 + restart: always + environment: + - POSTGRES_USER=listmonk + - POSTGRES_PASSWORD + - POSTGRES_DB=listmonk + volumes: + - ./data/postgres:/var/lib/postgresql/data/ + healthcheck: + test: pg_isready -U listmonk -d listmonk + interval: 10s + timeout: 5s + retries: 5 + + listmonk: + image: listmonk/listmonk:latest + restart: always + environment: + - TZ=America/Chicago + volumes: + - ./config.toml:/listmonk/config.toml + - ./data/listmonk/uploads:/listmonk/uploads/ + ports: + - 127.0.0.1:85:9000 + depends_on: + - postgres