version: '2' services: postgresql: build: ./postgresql container_name: nextcloud-postgresql # restart: unless-stopped networks: main: aliases: - postgresql.main.internal.docker volumes: - ./data/postgresql/data:/var/lib/postgresql/data ports: - "127.0.0.1:3580:5432" env_file: - env nextcloud: build: ./nextcloud container_name: nextcloud-nextcloud # restart: unless-stopped networks: main: aliases: - nextcloud.main.internal.docker volumes: - ./data/nextcloud/custom_apps:/var/www/html/custom_apps - ./data/nextcloud/config:/var/www/html/config - ./data/nextcloud/data:/var/www/html/data ports: - "127.0.0.1:35081:80" environment: - POSTGRES_DB=nextcloud env_file: - env collabora: build: ./collabora container_name: nextcloud-collabora # restart: unless-stopped networks: main: aliases: - collabora.main.internal.docker ports: - "127.0.0.1:35082:9980" cap_add: - MKNOD env_file: - env - env_collabora networks: main: