diff --git a/nextcloud/docker-compose.yml b/nextcloud/docker-compose.yml index 66254e7..b6cc10f 100755 --- a/nextcloud/docker-compose.yml +++ b/nextcloud/docker-compose.yml @@ -1,12 +1,20 @@ -version: '2' - -services: - app: - image: nextcloud:latest - container_name: nextcloud - hostname: next.ionathan.ch - ports: - - 8000:80 - volumes: - - .:/var/www/html - restart: always +version: '2' + +services: + redis: + image: redis:latest + container_name: redis + restart: always + app: + image: nextcloud:latest + container_name: nextcloud + hostname: next.ionathan.ch + ports: + - 8000:80 + volumes: + - .:/var/www/html + restart: always + depends_on: + - redis + environment: + - REDIS_HOST=redis