Skip to content

Instantly share code, notes, and snippets.

@gzm0
Created March 10, 2021 16:43
Show Gist options
  • Save gzm0/62d568ac43f927f27f1a59f9e58eac1d to your computer and use it in GitHub Desktop.
Save gzm0/62d568ac43f927f27f1a59f9e58eac1d to your computer and use it in GitHub Desktop.
Quick and dirty nextcloud with collabora / CODE
version: '3'
services:
db:
image: postgres:alpine
restart: always
volumes:
- db:/var/lib/postgresql/data
env_file:
- db.env
cloud:
image: nextcloud:apache
restart: always
ports:
- 8080:80
volumes:
- nextcloud:/var/www/html
environment:
- POSTGRES_HOST=db
# Needs to run with local IP, because we need host->cloud, host->office, office<->cloud
- NEXTCLOUD_TRUSTED_DOMAINS=localhost:8080 192.168.86.112:8080
env_file:
- db.env
office:
image: collabora/code:latest
restart: always
ports:
- 9980:9980
environment:
- extra_params=--o:ssl.enable=false
cap_add:
- MKNOD
privileged: true # https://github.com/CollaboraOnline/online/issues/779#issuecomment-740250110
volumes:
db:
nextcloud:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment