34 lines
846 B
Django/Jinja
34 lines
846 B
Django/Jinja
version: '3.6'
|
|
|
|
services:
|
|
|
|
nextcloud:
|
|
image: nextcloud:stable-fpm
|
|
restart: always
|
|
ports:
|
|
- 9000:9000
|
|
env:
|
|
- VIRTUAL_PROTO: "http"
|
|
- VIRTUAL_HOST: "{{ inventory_hostname | default('ansible_undefined_fact') }}"
|
|
- LETSENCRYPT_HOST: "{{ inventory_hostname | default('ansible_undefined_fact') }}"
|
|
networks:
|
|
default:
|
|
aliases:
|
|
- "test-eqit.lan"
|
|
volumes:
|
|
- ~/webroot:/var/www/html
|
|
|
|
nginx-proxy:
|
|
restart: unless-stopped
|
|
ports:
|
|
- 8080:8080
|
|
- 8443:8443
|
|
image: nginxproxy/nginx-proxy:1.9-alpine
|
|
environment:
|
|
HTTP_PORT: 8080
|
|
HTTPS_PORT: 8443
|
|
volumes:
|
|
- /run/user/1000/podman/podman.sock:/tmp/docker.sock:ro
|
|
- /home/nextcloud/nginx/certs:/etc/nginx/certs
|
|
- /home/nextcloud/nginx/challenges:/usr/share/nginx/html
|