1234567891011121314151617181920212223242526272829303132333435363738394041 |
- version: '3'
- networks:
- web:
- external: true
- services:
- db:
- image: postgres:10-alpine
- restart: unless-stopped
- environment:
- - POSTGRES_DB=workaround # nextcloud wants to create the db itself
- - POSTGRES_USER=nextcloud
- env_file:
- - .env
- volumes:
- - ${CHATONS_ROOT_DIR:-/srv/chatons}/${CHATONS_SERVICE:-cloud}/db:/var/lib/postgresql/data
- app:
- image: nextcloud:fpm-alpine
- restart: unless-stopped
- environment:
- - POSTGRES_DB=nextcloud
- - POSTGRES_USER=nextcloud
- - POSTGRES_HOST=db
- env_file:
- - .env
- volumes:
- - ${CHATONS_ROOT_DIR:-/srv/chatons}/${CHATONS_SERVICE:-cloud}/app:/var/www/html
- web:
- build: .
- restart: unless-stopped
- volumes:
- - ${CHATONS_ROOT_DIR:-/srv/chatons}/${CHATONS_SERVICE:-cloud}/app:/var/www/html:ro
- labels:
- traefik.enable: "true"
- traefik.frontend.rule: "Host: ${CHATONS_SERVICE:-cloud}.${CHATONS_DOMAIN:-localhost}, www.${CHATONS_SERVICE:-cloud}.${CHATONS_DOMAIN:-localhost}"
- networks:
- - web
- - default
|