-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
88 lines (74 loc) · 2.67 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
################################################################################
# VOLUMES
################################################################################
volumes:
db: {}
################################################################################
# SERVICES
################################################################################
services:
# ------------------------------------------------------------
# PHP
# ------------------------------------------------------------
php:
image: devilbox/php-fpm:${PHP_VERSION:-8.2}-work
working_dir: /var/www/default
volumes:
- .:/var/www/default:rw
- ./docker/php/php.ini:/etc/php-custom.d/99-custom.ini:ro
extra_hosts:
- host.docker.internal:host-gateway
environment:
ENABLE_MODULES: ${PHP_MODULES_ENABLE:-}
DISABLE_MODULES: ${PHP_MODULES_DISABLE-xdebug}
TEST_DATABASE_HOST: db
TEST_DATABASE_PORT: 3306
TEST_DATABASE_NAME: integration_test
TEST_DATABASE_USER: root
TEST_DATABASE_PASSWORD: ''
# ------------------------------------------------------------
# Daemon
# ------------------------------------------------------------
daemon:
image: devilbox/php-fpm:${PHP_VERSION:-8.2}-work
stop_grace_period: 1s
volumes:
- .:/var/www/default:rw
- ./docker/docker-daemon.sh:/startup.1.d/99-docker-daemon.sh:rw
# ------------------------------------------------------------
# Web Server (Nginx)
# ------------------------------------------------------------
# httpd:
# image: nginx:${NGINX_VERSION:-stable}
# ports:
# - ${HTTPD_PORT:-0}:80
# volumes:
# - .:/var/www/default:ro
# - ./docker/cfg/nginx/espo.conf:/etc/nginx/conf.d/default.conf:ro
# ------------------------------------------------------------
# Web Server (Apache)
# ------------------------------------------------------------
httpd:
image: devilbox/apache-${APACHE_VERSION:-2.4}:alpine
ports:
- ${HTTPD_PORT:-0}:80
volumes:
- .:/var/www/default:ro
environment:
MAIN_VHOST_DOCROOT_DIR: site
MAIN_VHOST_BACKEND: conf:phpfpm:tcp:php:9000
# ------------------------------------------------------------
# Database
# ------------------------------------------------------------
db:
image: mariadb:${MARIADB_VERSION:-lts}
ports:
- ${DB_PORT:-0}:3306
volumes:
- db:/var/lib/mysql:rw
- ./docker/create_databases.sql:/docker-entrypoint-initdb.d/create_databases.sql:ro
environment:
MARIADB_ROOT_PASSWORD: ''
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: ${MARIADB_ALLOW_EMPTY_ROOT_PASSWORD:-yes}
MARIADB_DATABASE: ${MARIADB_DATABASE:-espocrm}