version: '3.7' services: server: image: nginx restart: always env_file: env volumes: # Vhost configuration #- ./config/caddy/Caddyfile:/etc/caddy/Caddyfiledocker-com - ./config/nginx/in-vhost.conf:/etc/nginx/conf.d/in-vhost.conf:ro # you may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data! - ./docker/app/public:/var/www/app/public:rw,delegated - ./docker/app/storage:/var/www/app/storage:rw,delegated depends_on: - app # Run webserver nginx on port 80 # Feel free to modify depending what port is already occupied ports: - "80:80" #- "443:443" networks: - invoiceninja extra_hosts: - "in5.localhost:192.168.0.124 " #host and ip app: image: invoiceninja/invoiceninja:5 env_file: env restart: always cap_add: - SYS_ADMIN volumes: # you may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data! - ./config/hosts:/etc/hosts:ro - ./docker/app/public:/var/www/app/public:rw,delegated - ./docker/app/storage:/var/www/app/storage:rw,delegated depends_on: - db networks: - invoiceninja extra_hosts: - "in5.localhost:192.168.0.124 " #host and ip db: image: mysql:5 ports: - "3305:3306" restart: always environment: - MYSQL_ROOT_PASSWORD=ninjaAdm1nPassword - MYSQL_USER=ninja - MYSQL_PASSWORD=ninja - MYSQL_DATABASE=ninja volumes: # you may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data! - ./docker/mysql/data:/var/lib/mysql:rw,delegated networks: - invoiceninja extra_hosts: - "in5.localhost:192.168.0.124 " #host and ip # THIS IS ONLY A VALID CONFIGURATION FOR IN 5. DO NOT USE FOR IN 4. cron: image: invoiceninja/invoiceninja:5 env_file: env volumes: - ./config/hosts:/etc/hosts:ro - ./docker/app/public:/var/www/app/public:rw,delegated - ./docker/app/storage:/var/www/app/storage:rw,delegated command: - cron.sh networks: - invoiceninja extra_hosts: - "in5.localhost:192.168.0.124 " #host and ip # THIS IS ONLY A VALID CONFIGURATION FOR IN 4. DO NOT USE FOR IN 5. # cron: # image: invoiceninja/invoiceninja:alpine-4 # volumes: # - storage:/var/www/app/storage # - logo:/var/www/app/public/logo # - public:/var/www/app/public # entrypoint: | # /bin/sh -c 'sh -s <