Skip to content
docker-compose.yml 735 B
Newer Older
Pierre Ozoux's avatar
Pierre Ozoux committed
web:
  image: nginx
  volumes:
    - ./nginx.conf:/etc/nginx/nginx.conf:ro
  links:
    - app
  volumes_from:
    - app
  environment:
Pierre Ozoux's avatar
Pierre Ozoux committed
    - VIRTUAL_HOST
Pierre Ozoux's avatar
Pierre Ozoux committed
app:
  image: indiehosters/nextcloud
  links:
    - db
  volumes:
    - ./data/apps:/var/www/html/apps
    - ./data/config:/var/www/html/config
    - ./data/data:/var/www/html/data
db:
  image: mysql
  volumes:
    - ./mysql/runtime:/var/lib/mysql
  environment:
    - MYSQL_ROOT_PASSWORD
Pierre Ozoux's avatar
Pierre Ozoux committed
cron:
  image: indiehosters/nextcloud
  links:
    - db
  volumes_from:
    - app
  user: www-data
  entrypoint: |
    bash -c 'bash -s <<EOF
    trap "break;exit" SIGHUP SIGINT SIGTERM
    while /bin/true; do
      /usr/local/bin/php /var/www/html/cron.php
      sleep 900
    done
    EOF'