Commit 03520cad authored by David's avatar David

Stuff that's for commento

parent 809eab63
commento_config.txt
db_password.txt
db_root_password.txt
commento_password.txt
db_data/
wp_themes/
wp_plugins/
logs/
wordpress/
\ No newline at end of file
wordpress/
......@@ -37,7 +37,7 @@ services:
- ./wordpress:/var/www/html
- ./php-uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_HOST: wordpress_db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD_FILE: /run/secrets/db_password
WORDPRESS_DB_NAME: wordpress
......@@ -45,12 +45,12 @@ services:
- db_password
networks:
- wp_net
- db_net
- wordpress_db_net
labels:
- com.centurylinklabs.watchtower.enable=true
db:
container_name: db
wordpress_db:
container_name: wordpress_db
image: mariadb:10
restart: always
volumes:
......@@ -64,16 +64,42 @@ services:
- db_root_password
- db_password
networks:
- db_net
- wordpress_db_net
labels:
- com.centurylinklabs.watchtower.enable=true
commento_db:
container_name: commento_db
image: postgres:12
volumes:
- ./pg_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: commento
POSTGRES_USER: commento
POSTGRES_PASSWORD_FILE: /run/secrets/commento_password
labels:
- com.centurylinklabs.watchtower.enable=true
commento:
container_name: commento
# Crap, this is going to need credentials isn't it?
image: registry.gitlab.com/commento/commento:v1.7.0
ports:
- '8081:8080'
environment:
COMMENTO_CONFIG_FILE: /run/secrets/commento_config
secrets:
db_password:
file: db_password.txt
db_root_password:
file: db_root_password.txt
commento_password:
file: commento_password.txt
commento_config:
file: commento_config.txt
networks:
db_net:
wordpress_db_net:
commento_db_net:
wp_net:
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment