-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
82 lines (69 loc) · 2.01 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
---
version: '3'
################################################################################
# SERVICES
################################################################################
services:
# ------------------------------------------------------------
# PHP
# ------------------------------------------------------------
php: &php
build:
context: ./docker/php
args:
PHP_VERSION: ${PHP_VERSION:-8.0-work}
container_name: php
restart: unless-stopped
working_dir: /var/www/default
environment:
NEW_UID: 1000
NEW_GID: 1000
DEBUG_ENTRYPOINT: '2'
DEBUG_COMPOSE_ENTRYPOINT: '2'
DOCKER_LOGS: '1'
COMPOSER_MEMORY_LIMIT: '-1'
COMPOSER_POOL_OPTIMIZER: '0'
volumes:
- .:/var/www/default:rw
# ------------------------------------------------------------
# Apache Web Server
# ------------------------------------------------------------
httpd:
image: devilbox/apache-2.4:alpine
container_name: httpd
restart: unless-stopped
environment:
NEW_UID: 1000
NEW_GID: 1000
MAIN_VHOST_ENABLE: 1
MAIN_VHOST_DOCROOT_DIR: site
PHP_FPM_ENABLE: 1
PHP_FPM_SERVER_ADDR: php
PHP_FPM_SERVER_PORT: 9000
PHP_FPM_TIMEOUT: 180
MAIN_VHOST_BACKEND: conf:phpfpm:tcp:php:9000
ports:
- '8080:80'
volumes:
- .:/var/www/default:ro
depends_on:
- php
# ------------------------------------------------------------
# MySQL Database
# ------------------------------------------------------------
mysql:
image: mariadb:${MYSQL_VERSION:-10.6}
container_name: mysql
restart: unless-stopped
ports:
- '3306:3306'
environment:
MYSQL_ROOT_PASSWORD: ''
MYSQL_ALLOW_EMPTY_PASSWORD: '${MYSQL_ALLOW_EMPTY_PASSWORD:-yes}'
MYSQL_USER: '${MYSQL_PASSWORD:-espocrm}'
MYSQL_DATABASE: '${MYSQL_DATABASE:-espocrm}'
MYSQL_PASSWORD: '${MYSQL_PASSWORD:-espocrm}'
volumes:
- mysql:/var/lib/mysql:rw
volumes:
mysql: {}