Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "2"
- services:
- caddy:
- image: abiosoft/caddy:no-stats
- container_name: caddy
- restart: always
- networks:
- - proxy
- ports:
- - "80:80"
- - "443:443"
- environment:
- CADDYPATH: "/etc/caddycerts"
- ACME_AGREE: "true"
- volumes:
- - ./caddy/Caddyfile:/etc/Caddyfile
- - ./caddy/caddycerts:/etc/caddycerts
- - ./caddy/www:/srv
- nextcloud:
- image: nextcloud:15-apache
- container_name: nextcloud
- restart: always
- networks:
- - proxy
- - backend
- depends_on:
- - postgres
- volumes:
- - nextcloud-data:/var/www/html
- postgres:
- image: postgres:11
- container_name: postgres
- restart: always
- networks:
- - backend
- volumes:
- - postgres-data:/var/lib/postgresql/data
- environment:
- - POSTGRES_USER=<user>
- - POSTGRES_PASSWORD=<password>
- collabora:
- image: collabora/code
- container_name: collabora
- restart: always
- cap_add:
- - MKNOD
- networks:
- - proxy
- environment:
- # Use "cloud1\\.example\\.org|cloud2\\.example\\.org" if you want to serve multiple hosts
- domain: "cloud\\.example\\.org"
- cert_domain: "collabora"
- volumes:
- nextcloud-data:
- postgres-data:
- networks:
- proxy:
- external: true
- backend:
- internal: true
Add Comment
Please, Sign In to add comment