Nextcloud_Docker_Installation/docker-compose.yml

33 lines
539 B
YAML

version: "3.9"
volumes:
data:
services:
nginx:
build: ./nginx
ports:
- 80:80
volumes:
- data:/var/www
restart: unless-stopped
depends_on:
- postgres
- phpfpm
postgres:
image: postgres:alpine
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=DoYouLikeWhatYouSee
- POSTGRES_USER=nextcloud
- POSTGRES_DB=nextcloud
phpfpm:
build: ./phpfpm
volumes:
- data:/var/www
environment:
- NEXTCLOUD_VERSION=21.0.2
restart: unless-stopped