docker-compose/nextcloud/docker-compose.yml

33 lines
832 B
YAML
Raw Normal View History

2024-02-04 00:54:26 +02:00
version: '3.5'
services:
nextcloud:
container_name: nextcloud
image: nextcloud:latest
restart: always
ports:
- 8080:80
volumes:
- ${BASE_DATA_DIR}/nextcloud/app:/var/www/html
- ${BASE_DATA_DIR}/nextcloud/data:/var/www/html/data
- ${BASE_DATA_DIR}/nextcloud/config:/var/www/html/config
environment:
- POSTGRES_HOST=nextcloud-db
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
depends_on:
- db
db:
image: postgres
restart: always
hostname: nextcloud-db
volumes:
- ${BASE_DATA_DIR}/nextcloud/postgres-data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}