48 lines
1.0 KiB
YAML
48 lines
1.0 KiB
YAML
services:
|
|
nextcloud_db:
|
|
# Remove this service - using shared-postgres instead
|
|
|
|
nextcloud:
|
|
image: nextcloud:31.0.9
|
|
restart: always
|
|
ports:
|
|
- 8081:80
|
|
volumes:
|
|
- ${NEXTCLOUD_DATA_DIR}:/var/www/html
|
|
environment:
|
|
- POSTGRES_HOST=shared-postgres
|
|
- POSTGRES_PORT=5432
|
|
- POSTGRES_DB=${NEXTCLOUD_POSTGRES_DB}
|
|
- POSTGRES_USER=${NEXTCLOUD_POSTGRES_USER}
|
|
- POSTGRES_PASSWORD=${NEXTCLOUD_POSTGRES_PASSWORD}
|
|
- REDIS_HOST=nextcloud-redis
|
|
- REDIS_PORT=6379
|
|
- NEXTCLOUD_TRUSTED_DOMAINS=${NEXTCLOUD_DOMAIN}
|
|
depends_on:
|
|
shared-postgres:
|
|
condition: service_healthy
|
|
networks:
|
|
- nextcloud
|
|
- postgres-network
|
|
|
|
cron:
|
|
image: nextcloud:31.0.9
|
|
container_name: nextcloud-cron
|
|
volumes:
|
|
- ${NEXTCLOUD_DATA_DIR}:/var/www/html
|
|
entrypoint: /cron.sh
|
|
restart: always
|
|
networks:
|
|
- nextcloud
|
|
|
|
nextcloud-redis:
|
|
image: redis:7
|
|
restart: always
|
|
networks:
|
|
- nextcloud
|
|
|
|
networks:
|
|
nextcloud:
|
|
postgres-network:
|
|
external: true
|