compose/nextcloud/docker-compose.yml

48 lines
1.1 KiB
YAML
Raw Normal View History

2024-09-19 10:34:42 -03:00
version: '3'
services:
db:
container_name: nextcloud_db
image: postgres:alpine
restart: always
volumes:
- /docker/appdata/nextcloud/postgres:/var/lib/postgresql/data
environment:
2024-09-19 11:02:38 -03:00
- POSTGRES_PASSWORD=nextcloud
2024-09-19 10:34:42 -03:00
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
redis:
2024-09-19 11:02:38 -03:00
container_name: nextcloud_redis
2024-09-19 10:34:42 -03:00
image: redis:alpine
restart: always
app:
container_name: nextcloud_app
image: nextcloud:apache
restart: always
ports:
2024-09-19 10:55:37 -03:00
- 8090:80
2024-09-19 10:34:42 -03:00
volumes:
- /docker/appdata/nextcloud/nextcloud:/var/www/html
environment:
- POSTGRES_HOST=db
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
2024-09-19 11:02:38 -03:00
- POSTGRES_PASSWORD=nextcloud
- REDIS_HOST=redis
2024-09-19 11:07:18 -03:00
- NEXTCLOUD_TRUSTED_DOMAINS=nextcloud.shoebottom.ca
2024-09-19 10:34:42 -03:00
depends_on:
- db
- redis
cron:
container_name: nextcloud_cron
image: nextcloud:apache
restart: always
volumes:
- /docker/appdata/nextcloud/nextcloud:/var/www/html
entrypoint: /cron.sh
depends_on:
- db
- redis