Renamed containers

This commit is contained in:
Kevin Veen-Birkenbach 2023-12-05 14:37:50 +01:00
parent d71b2c632f
commit 3e5eeb94ec
3 changed files with 20 additions and 13 deletions

View File

@ -1,5 +1,12 @@
# Role Docker Listmonk
## Setup
Remember to run the installation script after the first setup, to initialize the Database
```bash
docker compose run --rm application ./listmonk --install
```
## Further Information
- https://listmonk.app/docs/installation/
- https://github.com/knadh/listmonk/

View File

@ -1,5 +1,5 @@
[app]
# Interface and port where the app will run its webserver. The default value
# Interface and port where the application will run its webserver. The default value
# of localhost will only listen to connections from the current machine. To
# listen on all interfaces use '0.0.0.0'. To listen on the default web address
# port, use port 80 (this will require running with elevated permissions).
@ -9,12 +9,12 @@ address = "0.0.0.0:9000"
# be replaced with a better multi-user, role-based authentication system.
# IMPORTANT: Leave both values empty to disable authentication on admin
# only where an external authentication is already setup.
admin_username = "listmonk"
admin_password = "listmonk"
admin_username = "{{listmonk_admin_username}}"
admin_password = "{{listmonk_admin_password}}"
# Database.
[db]
host = "listmonk_db"
host = "database"
port = 5432
user = "listmonk"
password = "{{listmonk_database_password}}"

View File

@ -4,7 +4,7 @@
version: "3.7"
x-app-defaults: &app-defaults
x-application-defaults: &application-defaults
restart: unless-stopped
image: listmonk/listmonk:latest
ports:
@ -14,7 +14,7 @@ x-app-defaults: &app-defaults
environment:
- TZ=Etc/UTC
x-db-defaults: &db-defaults
x-database-defaults: &database-defaults
image: postgres:13-alpine
ports:
- "9432:5432"
@ -32,19 +32,19 @@ x-db-defaults: &db-defaults
retries: 6
services:
db:
<<: *db-defaults
container_name: listmonk_db
database:
<<: *database-defaults
container_name: database
volumes:
- type: volume
source: listmonk-data
target: /var/lib/postgresql/data
app:
<<: *app-defaults
container_name: listmonk_app
application:
<<: *application-defaults
container_name: listmonk_application
depends_on:
- db
- database
volumes:
- ./config.toml:/listmonk/config.toml