2021-01-01 15:09:53 +00:00
|
|
|
version: '2.4'
|
|
|
|
services:
|
2021-04-02 07:53:52 +00:00
|
|
|
redis:
|
|
|
|
image: redis:6.2.0
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- /var/redis:/data
|
|
|
|
networks:
|
|
|
|
- "nextcloud_net"
|
2021-01-01 15:09:53 +00:00
|
|
|
nextcloud:
|
2021-04-02 07:53:52 +00:00
|
|
|
build: ./nextcloud-fpm
|
|
|
|
restart: unless-stopped
|
2021-01-01 15:09:53 +00:00
|
|
|
environment:
|
2021-01-17 16:37:14 +00:00
|
|
|
POSTGRES_DB: nextcloud
|
|
|
|
POSTGRES_USER: nextcloud
|
2021-01-31 19:52:24 +00:00
|
|
|
POSTGRES_HOST: postgres
|
2021-01-17 16:37:14 +00:00
|
|
|
POSTGRES_PASSWORD: ${POSTGRES_DB_PASSWORD}
|
2021-04-12 09:14:55 +00:00
|
|
|
TRUSTED_PROXIES: "cloud.teier.net 138.201.74.231 172.0.0.1/8"
|
2021-01-01 15:09:53 +00:00
|
|
|
APACHE_DISABLE_REWRITE_IP: "1"
|
2021-04-12 09:14:55 +00:00
|
|
|
OVERWRITEHOST: "cloud.teier.net"
|
2021-01-01 15:09:53 +00:00
|
|
|
OVERWRITEPROTOCOL: "https"
|
|
|
|
OVERWRITEWEBROOT: "/"
|
|
|
|
OVERWRITECONADDR: "138.201.74.231"
|
2021-04-02 07:53:52 +00:00
|
|
|
REDIS_HOST: redis
|
2021-01-01 15:09:53 +00:00
|
|
|
networks:
|
2021-01-17 16:37:14 +00:00
|
|
|
- "postgres_net"
|
2021-01-01 15:09:53 +00:00
|
|
|
- "nextcloud_net"
|
|
|
|
volumes:
|
|
|
|
- /var/nextcloud:/var/www/html
|
2021-04-02 07:53:52 +00:00
|
|
|
- /mnt/mathias:/mnt/mathias
|
|
|
|
- /mnt/public:/mnt/public
|
2021-01-01 15:09:53 +00:00
|
|
|
web:
|
|
|
|
image: nginx
|
2021-04-02 07:53:52 +00:00
|
|
|
restart: unless-stopped
|
2021-01-01 15:09:53 +00:00
|
|
|
ports:
|
|
|
|
- 8081:80
|
|
|
|
networks:
|
|
|
|
- "nextcloud_net"
|
|
|
|
volumes:
|
|
|
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
|
|
|
volumes_from:
|
|
|
|
- nextcloud
|
|
|
|
networks:
|
|
|
|
nextcloud_net:
|
|
|
|
name: "nextcloud_net"
|
|
|
|
driver: bridge
|
2021-01-31 19:52:24 +00:00
|
|
|
postgres_net:
|
2021-01-17 16:37:14 +00:00
|
|
|
name: "postgres_net"
|
2021-04-02 07:53:52 +00:00
|
|
|
external: true
|