50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
---
|
|
services:
|
|
server:
|
|
image: nginx
|
|
container_name: in_nginx
|
|
restart: always
|
|
command: /bin/sh -c "rm -f /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
|
|
env_file: .env
|
|
volumes:
|
|
- /srv/invoiceninja/config/nginx/in-vhost.conf:/etc/nginx/conf.d/in-vhost.conf:ro
|
|
- /srv/invoiceninja/docker/app/public:/var/www/app/public:ro
|
|
depends_on:
|
|
- app
|
|
expose:
|
|
- "80"
|
|
networks:
|
|
- invoiceninja
|
|
- proxy
|
|
|
|
app:
|
|
image: invoiceninja/invoiceninja:5
|
|
container_name: invoiceninja
|
|
env_file: .env
|
|
restart: always
|
|
volumes:
|
|
- /srv/invoiceninja/config/hosts:/etc/hosts:ro
|
|
- /srv/invoiceninja/docker/app/public:/var/www/app/public:rw,delegated
|
|
- /srv/invoiceninja/docker/app/storage:/var/www/app/storage:rw,delegated
|
|
- /srv/invoiceninja/config/php/php.ini:/usr/local/etc/php/php.ini
|
|
- /srv/invoiceninja/config/php/php-cli.ini:/usr/local/etc/php/php-cli.ini
|
|
depends_on:
|
|
- db
|
|
networks:
|
|
- invoiceninja
|
|
|
|
db:
|
|
image: mysql:8.4.0-oraclelinux8
|
|
container_name: in_mysql
|
|
restart: always
|
|
env_file: .env
|
|
volumes:
|
|
- /srv/invoiceninja/docker/mysql/data:/var/lib/mysql:rw,delegated
|
|
networks:
|
|
- invoiceninja
|
|
|
|
networks:
|
|
invoiceninja:
|
|
proxy:
|
|
external: true
|