2023-02-13 09:44:56 +00:00
|
|
|
version: '3.2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
app:
|
|
|
|
image: docker.sunet.se/drive/nextcloud-custom:<%= @nextcloud_version %>
|
|
|
|
restart: always
|
2024-03-18 09:30:10 +00:00
|
|
|
container_name: nextcloud_app_1
|
2024-04-24 18:44:41 +00:00
|
|
|
<%- if @hostnet -%>
|
|
|
|
network_mode: host
|
|
|
|
<%- end -%>
|
2023-09-02 07:28:39 +00:00
|
|
|
environment:
|
|
|
|
- NC_PASS=<%= @admin_password%>
|
2023-02-13 09:44:56 +00:00
|
|
|
volumes:
|
|
|
|
- /opt/nextcloud/000-default.conf:/etc/apache2/sites-enabled/000-default.conf
|
|
|
|
- /opt/nextcloud/mpm_prefork.conf:/etc/apache2/mods-available/mpm_prefork.conf
|
|
|
|
- /opt/nextcloud/404.html:/var/www/html/404.html
|
|
|
|
- /opt/nextcloud/apache.php.ini:/etc/php/8.0/apache2/php.ini
|
2023-06-01 09:47:16 +00:00
|
|
|
- /opt/nextcloud/apcu.ini:/etc/php/8.0/mods-available/apcu.ini
|
2023-02-13 09:44:56 +00:00
|
|
|
- /opt/nextcloud/cli.php.ini:/etc/php/8.0/cli/php.ini
|
|
|
|
- /opt/nextcloud/complete_reinstall.sh:/complete_reinstall.sh
|
|
|
|
- /opt/nextcloud/config.php:/var/www/html/config/config.php
|
|
|
|
- /opt/nextcloud/nextcloud.log:/var/www/html/data/nextcloud.log
|
|
|
|
- /opt/nextcloud/rclone.conf:/rclone.conf
|
|
|
|
<%- if @skeletondirectory -%>
|
|
|
|
- /opt/nextcloud/skeleton:<%= @skeletondirectory %>
|
|
|
|
<%- end -%>
|
|
|
|
<%- if @location =~ /^gss/ -%>
|
|
|
|
- /opt/nextcloud/mappingfile.json:/var/www/html/mappingfile.json
|
|
|
|
<%- end -%>
|
|
|
|
<% if @location =~ /^kau/ -%>
|
|
|
|
- /mnt:/opt/tmp/
|
|
|
|
<%- end -%>
|
2024-04-24 18:44:41 +00:00
|
|
|
<%- if ! @hostnet -%>
|
2023-02-13 09:44:56 +00:00
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- proxysql_proxysql
|
2024-04-24 18:44:41 +00:00
|
|
|
<%- end -%>
|
2023-02-13 09:44:56 +00:00
|
|
|
dns:
|
|
|
|
- 89.32.32.32
|
2024-04-24 19:32:25 +00:00
|
|
|
<%- if !@hostnet -%>
|
2023-02-13 09:44:56 +00:00
|
|
|
ports:
|
|
|
|
- 443:443
|
2024-04-24 19:32:25 +00:00
|
|
|
<%- end -%>
|
2023-10-17 08:25:33 +00:00
|
|
|
command: sh -c 'tail -f /var/www/html/data/nextcloud.log | tee -a /proc/1/fd/2 & apachectl -D FOREGROUND'
|
2023-02-13 09:44:56 +00:00
|
|
|
tty: true
|
|
|
|
|
2024-04-24 19:32:25 +00:00
|
|
|
<%- if !@hostnet -%>
|
2023-02-13 09:44:56 +00:00
|
|
|
networks:
|
|
|
|
proxysql_proxysql:
|
|
|
|
external: true
|
2024-04-24 19:32:25 +00:00
|
|
|
<%- end -%>
|