-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
150 lines (136 loc) · 3.23 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# docker dev farm
# https://github.com/zinan/docker-dev-farm
version: "2"
services:
php73:
build: php7.3
container_name: php73
volumes:
- ${DEFAULT_PROJECTS_FOLDER}:/var/www/html
php72:
build: php7.2
container_name: php72
volumes:
- ${DEFAULT_PROJECTS_FOLDER}:/var/www/html
php71:
build: php7.1
container_name: php71
volumes:
- ${DEFAULT_PROJECTS_FOLDER}:/var/www/html
php56:
build: php5.6
container_name: php56
volumes:
- ${DEFAULT_PROJECTS_FOLDER}:/var/www/html
apache:
build: apache
container_name: apache
tty: true
environment:
- DEFAULT_PROJECTS_FOLDER= ${DEFAULT_PROJECTS_FOLDER}
volumes:
- ./apache/sites-enabled:/etc/apache2/sites-enabled
- ./log/:/var/log/apache2
volumes_from:
- php73
- php72
- php71
- php56
links:
- php73:php73
- php72:php72
- php71:php71
- php56:php56
ports:
- ${DEFAULT_APACHE_PORT}:80
nginx:
build: nginx
container_name: nginx
environment:
- DEFAULT_PROJECTS_FOLDER= ${DEFAULT_PROJECTS_FOLDER}
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./log/:/var/log/nginx
volumes_from:
- php73
- php72
- php71
- php56
links:
- php73:php73
- php72:php72
- php71:php71
- php56:php56
ports:
- ${DEFAULT_NGINX_PORT}:80
mysql:
build: mysql
command: --default-authentication-plugin=mysql_native_password --innodb-use-native-aio=0
container_name: mysql
restart: always
volumes:
- ./data/db:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${GLOBAL_PASSWORD}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${GLOBAL_PASSWORD}
ports:
- ${DEFAULT_MYSQL_PORT}:3306
mongodb:
image: mongo:latest
container_name: mongo
environment:
- MONGO_DATA_DIR=/var/lib/mongodb
- MONGO_LOG_DIR=/var/log/mongodb
volumes:
- ./data/mongo/mongodb:/var/lib/mongodb
- ./data/mongo/logs/mongodb:/var/log/mongodb
- ./data/mongo/data/db:/data/db
ports:
- ${DEFAULT_MONGO_PORT}:27017
redis:
container_name: redis
image: redis:alpine
environment:
- REDIS_DEFAULT_PASSWORD=${GLOBAL_PASSWORD}
- MASTER_DEFAULT_PASSWORD=${GLOBAL_PASSWORD}
ports:
- ${DEFAULT_REDIS_PORT}:6379
redis-commander:
container_name: rediscommander
build: rediscommander
restart: always
environment:
- REDIS_HOST=redis
- REDIS_PASSWORD=${GLOBAL_PASSWORD}
ports:
- ${DEFAULT_RCOMMANDER_PORT}:80
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
ports:
- ${DEFAULT_MYADMIN_PORT}:80
links:
- mysql
depends_on:
- mysql
# environment:
# PMA_HOST: mysql
nodejs:
build: nodejs
container_name: nodejs
ports:
- ${DEFAULT_NODEJS_PORT}:3000
volumes:
- ${DEFAULT_PROJECTS_FOLDER}:/var/www/html
postgresql:
build: postgresql
container_name: postgresql
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${GLOBAL_PASSWORD}
PGDATA: /data/postgres
ports:
- ${DEFAULT_POSTGRES_PORT}:5432
volumes:
- ./data/postgres:/data/postgres