-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.dev.yml
206 lines (190 loc) · 5.13 KB
/
docker-compose.dev.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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
version: '3'
services:
exosuite-api-php-fpm:
working_dir: ${STORAGE_PATH}/${API_FOLDER_NAME}
build:
context: ./php-fpm
restart: ${RESTART_MODE}
container_name: exosuite-api-php-fpm
volumes:
- ${API_FOLDER_PATH}:${STORAGE_PATH}/${API_FOLDER_NAME}
networks:
- exosuite-network
exosuite-website-php-fpm:
working_dir: ${STORAGE_PATH}/${WEBSITE_FOLDER_NAME}
build:
context: ./php-fpm
restart: ${RESTART_MODE}
container_name: exosuite-website-php-fpm
volumes:
- ${WEBSITE_FOLDER_PATH}:${STORAGE_PATH}/${WEBSITE_FOLDER_NAME}
networks:
- exosuite-network
nginx-website:
hostname: exosuite.local app.exosuite.local gandalf.exosuite.local
restart: ${RESTART_MODE}
build:
context: ./server_confs/${ENVIRONMENT}
args:
- ENVIRONMENT=${ENVIRONMENT}
volumes:
- ${WEBSITE_FOLDER_PATH}:${STORAGE_PATH}/${WEBSITE_FOLDER_NAME}
container_name: nginx-website
depends_on:
- exosuite-website-php-fpm
- exosuite-website-postgres
networks:
- exosuite-network
exosuite-nginx:
hostname: exosuite.local api.exosuite.local app.exosuite.local
restart: ${RESTART_MODE}
ports:
- ${NGINX_PORT}
build:
context: ./server_confs/${ENVIRONMENT}/reverse
args:
- ENVIRONMENT=${ENVIRONMENT}
container_name: exosuite-nginx
depends_on:
- nginx-users-api
- nginx-website
networks:
- exosuite-network
nginx-users-api:
hostname: api.exosuite.local
restart: ${RESTART_MODE}
build:
context: ./server_confs/${ENVIRONMENT}
args:
- ENVIRONMENT=${ENVIRONMENT}
volumes:
- ${API_FOLDER_PATH}:${STORAGE_PATH}/${API_FOLDER_NAME}
container_name: nginx-users-api
depends_on:
- exosuite-api-php-fpm
- exosuite-api-postgres
networks:
- exosuite-network
resolver:
image: dvdarias/docker-hoster:latest
volumes:
- /etc/hosts:/tmp/hosts
- /var/run/docker.sock:/tmp/docker.sock
networks:
- exosuite-network
container_name: resolver
exosuite-api-postgres:
restart: ${RESTART_MODE}
image: mdillon/postgis:11-alpine
ports:
- ${API_POSTGRES_PORT}
container_name: exosuite-api-postgres
environment:
- POSTGRES_DB=exosuite-users-api
- POSTGRES_USER=exosuite
- POSTGRES_PASSWORD=root
- PGDATA=/var/lib/postgresql/data/pgdata
networks:
- exosuite-network
volumes:
- ${STORAGE_PATH}/exosuite-api-postgres:/var/lib/postgresql/data/pgdata
exosuite-website-postgres:
restart: ${RESTART_MODE}
image: postgres:11.1-alpine
container_name: exosuite-website-postgres
environment:
- POSTGRES_DB=exosuite-website
- POSTGRES_USER=exosuite
- POSTGRES_PASSWORD=root
- PGDATA=/var/lib/postgresql/data/pgdata
networks:
- exosuite-network
volumes:
- ${STORAGE_PATH}/exosuite-website-postgres:/var/lib/postgresql/data/pgdata
exosuite-laravel-echo-server:
restart: ${RESTART_MODE}
build:
context: ./laravel-echo-server
container_name: exosuite-laravel-echo-server
environment:
- APP_URL=http://nginx-users-api
- APP_DEBUG=true
- REDIS_HOST=${REDIS_HOST}
- LES_DB=redis
networks:
- exosuite-network
ports:
- "6001:6001"
depends_on:
- exosuite-redis-live
- exosuite-redis-store
exosuite-redis-store:
restart: ${RESTART_MODE}
container_name: exosuite-redis-store
image: redis:alpine
networks:
- exosuite-network
command: ["sh", "-c",'docker-entrypoint.sh --appendonly yes']
ports:
- "6379:6379"
exosuite-redis-live:
restart: ${RESTART_MODE}
container_name: exosuite-redis-live
image: redis:alpine
networks:
- exosuite-network
command: ["sh", "-c",'docker-entrypoint.sh --appendonly yes']
exosuite-laravel-horizon:
restart: ${RESTART_MODE}
container_name: exosuite-laravel-horizon
build:
context: laravel-artisan
args:
ENTRYPOINT_DIR: horizon
volumes:
- ${API_FOLDER_PATH}:${STORAGE_PATH}/${API_FOLDER_NAME}
environment:
- BUILT_FOR=dev
networks:
- exosuite-network
depends_on:
- exosuite-laravel-echo-server
exosuite-scheduler:
restart: ${RESTART_MODE}
container_name: exosuite-scheduler
build:
context: laravel-artisan
args:
ENTRYPOINT_DIR: scheduler
volumes:
- ${API_FOLDER_PATH}:${STORAGE_PATH}/${API_FOLDER_NAME}
networks:
- exosuite-network
depends_on:
- exosuite-laravel-echo-server
exosuite-elasticsearch:
restart: ${RESTART_MODE}
container_name: exosuite-elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:6.6.2
environment:
- "discovery.type=single-node"
ports:
- "9200:9200"
networks:
- exosuite-network
exosuite-vsftpd:
restart: ${RESTART_MODE}
container_name: exosuite-vsftpd
image: fauria/vsftpd
environment:
- FTP_USER=exosuite
- FTP_PASS=root
- PASV_ENABLE=NO
ports:
- "20:20"
- "21:21"
networks:
- exosuite-network
networks:
exosuite-network:
driver: bridge