working on putting nextcloud in container
This commit is contained in:
parent
4b8223fd63
commit
5e08d68abe
4 changed files with 63 additions and 5 deletions
|
@ -17,7 +17,7 @@ wordpress:
|
||||||
gitea:
|
gitea:
|
||||||
version: 1.12.1
|
version: 1.12.1
|
||||||
synapse:
|
synapse:
|
||||||
version: v1.18.0
|
version: v1.19.2
|
||||||
drupal:
|
drupal:
|
||||||
version: 8.8.5-apache
|
version: 8.8.5-apache
|
||||||
|
|
||||||
|
@ -168,3 +168,21 @@ sites:
|
||||||
registration_shared_secret: "{{ vault_synapse_registration_shared_secret }}"
|
registration_shared_secret: "{{ vault_synapse_registration_shared_secret }}"
|
||||||
# Others
|
# Others
|
||||||
max_upload_size: 20M
|
max_upload_size: 20M
|
||||||
|
|
||||||
|
- slug: cloud # Shorthand name to use as directory/file name
|
||||||
|
# The site URL (without www)
|
||||||
|
url: cloud.luxeylab.net
|
||||||
|
# Ask nginx to redirect url to www
|
||||||
|
# Else, we redirect www to url
|
||||||
|
redirect_to_www: no
|
||||||
|
# What kind of site is that?
|
||||||
|
type: nextcloud
|
||||||
|
# Subnet addresses
|
||||||
|
subnet_cidr_address: 172.27.8.0/24
|
||||||
|
subnet_gateway_ip: 172.27.8.1
|
||||||
|
subnet_nginx_ip: 172.27.8.2
|
||||||
|
subnet_site_ip: 172.27.8.3
|
||||||
|
# MySQL
|
||||||
|
mysql_database: lexperimental
|
||||||
|
mysql_username: lexperimental
|
||||||
|
mysql_password: "{{ vault_lexperimental_mysql_password }}"
|
|
@ -0,0 +1,44 @@
|
||||||
|
version: '3'
|
||||||
|
|
||||||
|
# Generated by ansible for site {{ site.url }}
|
||||||
|
# On network {{ site.subnet_cidr_address }}:
|
||||||
|
# - web server (nginx) at {{ site.subnet_nginx_ip }}
|
||||||
|
# - php-fpm (wordpress) at {{ site.subnet_site_ip }}
|
||||||
|
|
||||||
|
services:
|
||||||
|
site:
|
||||||
|
image: nextcloud:latest-apache
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
MYSQL_HOST: "{{ site.subnet_gateway_ip }}"
|
||||||
|
MYSQL_USER: "{{ site.mysql_username }}"
|
||||||
|
MYSQL_PASSWORD: "{{ site.mysql_password }}"
|
||||||
|
MYSQL_DATABASE: "{{ site.mysql_database }}"
|
||||||
|
volumes:
|
||||||
|
- "html_data:/var/www/html"
|
||||||
|
- "{{ site_data_path }}:/var/www/html/wp-content"
|
||||||
|
networks:
|
||||||
|
net:
|
||||||
|
ipv4_address: "{{ site.subnet_site_ip }}"
|
||||||
|
|
||||||
|
nginx:
|
||||||
|
build: nginx
|
||||||
|
restart: always
|
||||||
|
depends_on:
|
||||||
|
- site
|
||||||
|
volumes_from:
|
||||||
|
- site
|
||||||
|
networks:
|
||||||
|
net:
|
||||||
|
ipv4_address: "{{ site.subnet_nginx_ip }}"
|
||||||
|
|
||||||
|
|
||||||
|
networks:
|
||||||
|
net:
|
||||||
|
ipam:
|
||||||
|
driver: default
|
||||||
|
config:
|
||||||
|
- subnet: "{{ site.subnet_cidr_address }}"
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
html_data:
|
0
deployer/roles/build/templates/nextcloud/nginx.host.j2
Normal file
0
deployer/roles/build/templates/nextcloud/nginx.host.j2
Normal file
|
@ -1622,19 +1622,15 @@ password_config:
|
||||||
email:
|
email:
|
||||||
# The hostname of the outgoing SMTP server to use. Defaults to 'localhost'.
|
# The hostname of the outgoing SMTP server to use. Defaults to 'localhost'.
|
||||||
#
|
#
|
||||||
#smtp_host: mail.server
|
|
||||||
smtp_host: "{{ site.smtp_host }}"
|
smtp_host: "{{ site.smtp_host }}"
|
||||||
|
|
||||||
# The port on the mail server for outgoing SMTP. Defaults to 25.
|
# The port on the mail server for outgoing SMTP. Defaults to 25.
|
||||||
#
|
#
|
||||||
#smtp_port: 587
|
|
||||||
smtp_port: {{ site.smtp_port }}
|
smtp_port: {{ site.smtp_port }}
|
||||||
|
|
||||||
# Username/password for authentication to the SMTP server. By default, no
|
# Username/password for authentication to the SMTP server. By default, no
|
||||||
# authentication is attempted.
|
# authentication is attempted.
|
||||||
#
|
#
|
||||||
# smtp_user: "exampleusername"
|
|
||||||
# smtp_pass: "examplepassword"
|
|
||||||
smtp_user: "{{ site.smtp_username }}"
|
smtp_user: "{{ site.smtp_username }}"
|
||||||
smtp_pass: "{{ site.smtp_password }}"
|
smtp_pass: "{{ site.smtp_password }}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue