diff --git a/roles/docker-listmonk/templates/docker-compose.yml.j2 b/roles/docker-listmonk/templates/docker-compose.yml.j2 index 2aa5eaa6..5a605aef 100644 --- a/roles/docker-listmonk/templates/docker-compose.yml.j2 +++ b/roles/docker-listmonk/templates/docker-compose.yml.j2 @@ -5,8 +5,6 @@ services: image: postgres:13-alpine ports: - "9432:5432" - networks: - - listmonk environment: - POSTGRES_PASSWORD={{database_password}} - POSTGRES_USER={{database_username}} @@ -17,10 +15,9 @@ services: interval: 10s timeout: 5s retries: 6 - container_name: database volumes: - type: volume - source: listmonk-data + source: database target: /var/lib/postgresql/data application: @@ -28,18 +25,12 @@ services: 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: \ No newline at end of file + database: \ No newline at end of file