-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·169 lines (168 loc) · 5 KB
/
docker-compose.yml
File metadata and controls
executable file
·169 lines (168 loc) · 5 KB
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
version: '3'
services:
nginx:
image: nginx:latest
#restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf:/etc/nginx/conf.d
- ./nginx/ssl:/etc/nginx/ssl
- ${APP_CODE_PATH_HOST}:/var/www/
- ./nginx/log:/var/log/nginx/
- ./nginx/html:/usr/share/nginx/html/
links:
- php
mysql:
image: mysql:8.0
#restart: always
ports:
- "127.0.0.1:1306:3306"
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
volumes:
- ${MYSQL_DATA_VOLUMES}:/var/lib/mysql
- ${APP_CODE_PATH_HOST}:/var/www
command: --max_allowed_packet=256M --collation-server=utf8mb4_unicode_ci --character-set-server=utf8mb4 --default-authentication-plugin=mysql_native_password
working_dir: ${MYSQL_WORKING_DIR}
mariadb:
image: mariadb:10.5
#restart: always
ports:
- "127.0.0.1:2306:3306"
environment:
- MYSQL_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
volumes:
- ${MARIADB_DATA_VOLUMES}:/var/lib/mysql
- ${APP_CODE_PATH_HOST}:/var/www
working_dir: ${MARIADB_WORKING_DIR}
postgres:
image: postgres:9.2
#restart: always
ports:
- "127.0.0.1:5432:5432"
environment:
- POSTGRES_PASSWORD=${POSTGRESQL_PASSWORD}
volumes:
- ${POSTGRESQL_DATA_VOLUMES}:/var/lib/postgresql/data
- ${APP_CODE_PATH_HOST}:/var/www
- ./postgres/conf/postgresql.conf:/etc/postgresql.conf
command: postgres -c config_file=/etc/postgresql.conf
working_dir: ${POSTGRESQL_WORKING_DIR}
mongo:
image: mongo:latest
#restart: always
ports:
- "127.0.0.1:27017-27019:27017-27019"
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_ROOT_PASSWORD}
volumes:
- ${MONGO_DATA_VOLUMES}:/data/db
working_dir: ${MONGO_WORKING_DIR}
php:
build: ./php
#restart: always
volumes:
- ${APP_CODE_PATH_HOST}:/var/www
environment:
- SITE_ENVIRONMENT=dev
links:
- mysql
- redis
- elasticsearch
- postgres
- mongo
working_dir: ${PHP_WORKING_DIR}
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
#restart: always
ports:
- "127.0.0.1:8306:80"
links:
- mysql:db
volumes:
- ./phpmyadmin/php.ini:/usr/local/etc/php/conf.d/phpmyadmin-php.ini
- ./phpmyadmin/config.user.inc.php:/etc/phpmyadmin/config.user.inc.php
phppgadmin:
image: dockage/phppgadmin:latest
#restart: always
ports:
- "127.0.0.1:8432:80"
environment:
- PHP_PG_ADMIN_SERVER_HOST=postgres
links:
- postgres
adminer:
image: adminer:latest
#restart: always
ports:
- "127.0.0.1:8080:8080"
links:
- mysql
- mariadb
- postgres
- mongo
environment:
- ADMINER_DEFAULT_SERVER=postgres
composer:
image: composer:latest
volumes:
- ${APP_CODE_PATH_HOST}:/var/www
working_dir: ${COMPOSER_WORKING_DIR}
#command: composer install
node:
image: node:12-stretch
#restart: always
ports:
- "127.0.0.1:4200:4200"
- "127.0.0.1:8000:8000"
- "127.0.0.1:6001:6001"
- "127.0.0.1:3000:3000"
volumes:
- ${APP_CODE_PATH_HOST}:/var/www
links:
- redis
- mongo
working_dir: ${NODE_WORKING_DIR}
tty: true
#command: bash -c "npm install --force && npm run prod"
mailhog:
image: mailhog/mailhog:latest
#restart: always
ports:
- "127.0.0.1:1025:1025"
- "127.0.0.1:8025:8025"
redis:
image: redis:latest
#restart: always
ports:
- "127.0.0.1:6379:6379"
phpredisadmin:
image: erikdubbelboer/phpredisadmin
#restart: always
ports:
- "127.0.0.1:8379:80"
links:
- redis
environment:
- REDIS_1_HOST=redis
- REDIS_1_PORT=6379
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.4
#restart: always
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ${ELASTICSEARCH_DATA_VOLUMES}:/usr/share/elasticsearch/data
ports:
- "127.0.0.1:9200:9200"
- "127.0.0.1:9300:9300"