services: nginx: image: nginx restart: always env_file: env volumes: # Vhost configuration #- ./config/caddy/Caddyfile:/etc/caddy/Caddyfiledocker-com - ./config/nginx:/etc/nginx/conf.d:ro - ./docker/app/public:/var/www/app/public:ro depends_on: - app # Run webserver nginx on port 80 # Feel free to modify depending what port is already occupied ports: - "80:80" #- "443:443" # extra_hosts: # - "in5.localhost:192.168.0.124 " #host and ip app: build: context: ./alpine/5 image: invoiceninja/invoiceninja:${TAG:-5} env_file: env restart: always volumes: # - ./config/hosts:/etc/hosts:ro - ./docker/app/public:/var/www/app/public:rw,delegated - ./docker/app/storage:/var/www/app/storage:rw,delegated # - ./config/php/php.ini:/usr/local/etc/php/conf.d/invoiceninja.ini # - ./config/php/php-fpm.conf:/usr/local/etc/php-fpm.d/invoiceninja.conf depends_on: - db - valkey # extra_hosts: # - "in5.localhost:192.168.0.124 " #host and ip db: image: mysql:8 # When running on ARM64 use MariaDB instead of MySQL # image: mariadb:10.4 # For auto DB backups comment out image and use the build block below # build: # context: ./config/mysql restart: always env_file: env volumes: - ./docker/mysql/data:/var/lib/mysql:rw,delegated # remove comments for next 4 lines if you want auto sql backups #- ./docker/mysql/bak:/backups:rw #- ./config/mysql/backup-script:/etc/cron.daily/daily:ro #- ./config/mysql/backup-script:/etc/cron.weekly/weekly:ro #- ./config/mysql/backup-script:/etc/cron.monthly/monthly:ro # 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: # - ./docker/app/public:/var/www/app/public:rw,delegated # - ./docker/app/storage:/var/www/app/storage:rw,delegated # - ./docker/app/public/logo:/var/www/app/public/logo:rw,delegated # entrypoint: | # /bin/sh -c 'sh -s <