-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·130 lines (121 loc) · 3.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
version: '2'
services:
nginx:
build:
context: images/nginx
args:
username: ${USERNAME}
domain: ${DOMAIN}
container_name: ${APPLICATION}_nginx
ports:
- 80:80
- 443:443
links:
- php
volumes:
- ${HOST_APP_PATH}:/var/www/html:delegated
- ./data/log:/var/log/nginx:delegated
- ./images/nginx/conf/ssl/:/etc/nginx/ssl/
- ./images/nginx/conf/conf.d/default.conf:/etc/nginx/conf.d/default.conf
- ./images/nginx/conf/applications/${APPLICATION}.conf:/etc/nginx/application.conf
- ./images/nginx/conf/includes:/etc/nginx/includes
networks:
mynetwork:
aliases:
- ${DOMAIN}
php:
build:
context: images/php
dockerfile: Dockerfile-${PHP_VERSION}
args:
username: ${USERNAME}
host_os: ${HOST_OS}
container_name: ${APPLICATION}_php
links:
- mysql
- redis
- neo4j
- elastic
volumes:
- ${HOST_APP_PATH}:/var/www/html
- /private:/private #/tmp dir for mac
- ./data/log:/var/log/php-fpm
- ./data/log/xdebug:/var/log/xdebug
- ${DOCKER_DATA_FOLDER}/composer/auth.json:/home/${USERNAME}/.composer/auth.json
- ./data/composer/cache:/home/${USERNAME}/.composer/cache
- ./data/root/composer/cache:/root/.composer
networks:
- mynetwork
environment:
- WP_CORE_DIR=/var/www/html
- WP_TESTS_DIR=/var/www/html/tests
- PHP_IDE_CONFIG="serverName=Docker"
mysql:
image: mysql:5.7
restart: always
container_name: ${APPLICATION}_mysql
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
volumes:
- ${DOCKER_DATA_FOLDER}/mysql57:/var/lib/mysql:delegated
networks:
- mynetwork
mailhog:
image: mailhog/mailhog
container_name: ${APPLICATION}_mailhog
ports:
- 1025:1025
- 8025:8025
networks:
- mynetwork
redis:
image: redis:4.0
container_name: ${APPLICATION}_redis
ports:
- 6379:6379
networks:
- mynetwork
redismin:
image: redsmin/proxy
container_name: ${APPLICATION}_redismin
environment:
REDSMIN_KEY: ${REDISMIN_KEY}
REDIS_URI: redis://redis:6379
networks:
- mynetwork
neo4j:
image: neo4j:3.5
container_name: ${APPLICATION}_neo4j
ports:
- 7474:7474
- 7473:7473
- 7687:7687
environment:
NEO4J_AUTH: neo4j/1234qwer
volumes:
- ${DOCKER_DATA_FOLDER}/neo4j/data:/data
- ${DOCKER_DATA_FOLDER}/neo4j/logs:/logs
- ${DOCKER_DATA_FOLDER}/neo4j/import:/var/lib/neo4j/import
- ${DOCKER_DATA_FOLDER}/neo4j/plugins:/plugins
networks:
- mynetwork
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.2
container_name: ${APPLICATION}_es1
environment:
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ${DOCKER_DATA_FOLDER}/elastic/data01:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- mynetwork
networks:
mynetwork:
driver: bridge