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