infrastructure/nextcloud/docker-compose.yaml

65 lines
1.8 KiB
YAML
Raw Normal View History

2022-02-12 21:44:12 +01:00
version: '3.2'
services:
db:
image: postgres:${postgres_version:-14}
2022-02-13 19:39:12 +01:00
restart: unless-stopped
2022-02-12 21:44:12 +01:00
environment:
- POSTGRES_DB=nextcloud
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- postgres_data:/var/lib/postgresql/data
2022-02-12 21:57:20 +01:00
networks:
- database
2022-02-12 21:44:12 +01:00
app:
image: nextcloud:${nextcloud_version:-latest}
2022-02-13 19:39:12 +01:00
restart: unless-stopped
2022-02-12 21:44:12 +01:00
volumes:
- /media/nextcloud/nextcloud_data:/var/www/html/data
- /media/nextcloud/nextcloud_config:/var/www/html/config
- /media/nextcloud/nextcloud_apps:/var/www/html/custom_apps
environment:
- VIRTUAL_HOST=cloud.jfreudenberger.de # the domain where the service should be reached
- VIRTUAL_PORT=80 # the port the service listens in the container
- LETSENCRYPT_HOST=cloud.jfreudenberger.de # the same domain as VIRTUAL_HOST; this enables ssl
depends_on:
- db
networks:
- webproxy
- database
- onlyoffice
2022-05-11 09:27:18 +02:00
- smtp_relay
2022-02-12 21:44:12 +01:00
onlyoffice:
image: onlyoffice/documentserver:${onlyoffice_version:-latest}
restart: unless-stopped
environment:
- VIRTUAL_HOST=onlyoffice.jfreudenberger.de # the domain where the service should be reached
- VIRTUAL_PORT=80 # the port the service listens in the container
- LETSENCRYPT_HOST=onlyoffice.jfreudenberger.de # the same domain as VIRTUAL_HOST; this enables ssl
- JWT_ENABLED=${ONLYOFFICE_JWT_ENABLED:-false}
- JWT_SECRET=${ONLYOFFICE_JWT_SECRET}
volumes:
- document_data:/var/www/onlyoffice/Data
- document_log:/var/log/onlyoffice
networks:
- onlyoffice
- webproxy
2022-02-12 21:44:12 +01:00
networks:
database:
onlyoffice:
2022-02-12 21:57:20 +01:00
webproxy:
external: true
name: webproxy
2022-05-11 09:27:18 +02:00
smtp_relay:
external: true
name: smtp_relay
2022-02-12 21:44:12 +01:00
volumes:
postgres_data:
document_data:
document_log: