-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
50 lines (47 loc) · 1.3 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
services:
php:
build: .docker/php
volumes:
- ./volumes/akaunting:/var/www/html
- ~/.composer:/var/www/.composer
- ~/.npm:/var/www/.npm/
restart: unless-stopped
environment:
- HOST_UID=${HOST_UID:-1000}
- HOST_GID=${HOST_GID:-1000}
- AKAUNTING_VERSION=${AKAUNTING_VERSION:-3.1.11}
- ADM_EMAIL=${ADM_EMAIL:[email protected]}
- ADM_PASSWD=${ADM_PASSWD:-admin}
- APP_ENV=${APP_ENV:-local}
- DB_CONNECTION=${DB_CONNECTION:-mysql}
- DB_PORT=${DB_PORT:-3306}
- DB_HOST=${DB_HOST:-mysql}
- DB_DATABASE=${DB_DATABASE:-akaunting}
- DB_USERNAME=${DB_USERNAME:-root}
- DB_PASSWORD=${DB_PASSWORD:-root}
- DB_PREFIX=${DB_PREFIX:-}
- XDEBUG_CONFIG
extra_hosts:
- host.docker.internal:host-gateway
web:
build:
context: .docker/nginx
args:
NGINX_CONF: http
restart: unless-stopped
volumes:
- ./volumes/akaunting:/var/www/html:ro
depends_on:
- php
ports:
- 80:80
mysql:
image: mysql
volumes:
- ./volumes/mysql/data:/var/lib/mysql
- ./volumes/mysql/dump:/docker-entrypoint-initdb.d
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-root}
- MYSQL_DATABASE=${MYSQL_DATABASE:-akaunting}