-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
194 lines (178 loc) · 4.42 KB
/
docker-compose.yml
File metadata and controls
194 lines (178 loc) · 4.42 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
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
version: "3.1"
services:
mysql:
image: mysql:5.7
container_name: "plizi_mysql"
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci
volumes:
- ./mysql_data_plizi:/var/lib/mysql
env_file:
- ./backend/docker/mysql/.env
ports:
- "3306:3306"
mysql8:
image: mysql:latest
container_name: "plizi_mysql8"
command:
- "--default-authentication-plugin=mysql_native_password"
volumes:
- ./mysql8_data_plizi:/var/lib/mysql
env_file:
- ./backend/docker/mysql/.env
ports:
- "3307:3306"
neo4j:
image: bitnami/neo4j:3
env_file:
- ./backend/docker/neo4j/.env
volumes:
- ./neo4j-persistence:/bitnami
ports:
- '7474:7474'
- '7473:7473'
- '7687:7687'
mongodb:
image: mongo:latest
env_file:
- ./backend/docker/mongo/.env
ports:
- 27017:27017
volumes:
- ./mongodb_data_plizi:/data/db
app_nginx:
image: nginx
container_name: "plizi_nginx_app"
working_dir: /app
volumes:
- ./frontend/docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./frontend/docker/nginx/conf.d:/etc/nginx/conf.d/
- ./frontend/docker/dhparam:/etc/nginx/dhparam
- ./frontend/docker/certbot/conf/:/etc/nginx/ssl/
- ./frontend/docker/certbot/data:/usr/share/nginx/html/letsencrypt
- ./frontend:/app
ports:
- "80:80"
- "443:443"
depends_on:
- php_api
app_node:
build: ./frontend/docker/node
container_name: "plizi_node_app"
tty: true
volumes:
- ./frontend:/app
api_nginx:
image: nginx
container_name: "plizi_nginx_api"
working_dir: /app
volumes:
- ./backend/docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./backend:/app
ports:
- "81:80"
depends_on:
- php_api
php_api:
build: ./backend/docker/
container_name: "plizi_api"
working_dir: /app
user: "www-data"
volumes:
- ./backend:/app
- ./frontend/docker/certbot/conf/:/etc/nginx/ssl/
depends_on:
- mysql
- mongodb
php_ws:
build: ./backend/docker/ws
container_name: "plizi_php_ws"
working_dir: /app
volumes:
- ./frontend/docker/certbot/conf/:/etc/nginx/ssl/
- ./backend:/app
ports:
- "7070:7070"
depends_on:
- php_api
queue_worker:
build: ./backend/docker/
container_name: "plizi_queue_worker"
working_dir: /app
volumes:
- ./backend:/app
command: php artisan queue:work
depends_on:
- php_api
swaggereditor:
image: sebp/swagger-editor
container_name: "plizi_swagger_editor_api"
ports:
- "8081:8080"
swagger:
image: swaggerapi/swagger-ui
container_name: "plizi_swagger_api"
environment:
SWAGGER_JSON: /app/swagger.json
BASE_URL: /docs
volumes:
- ./swagger.json:/app/swagger.json
expose:
- 8080
ports:
- "8082:8080"
certbot:
image: certbot/certbot:latest
command: certonly --webroot --webroot-path=/usr/share/nginx/html/letsencrypt --email kiliman6aro@gmail.com --agree-tos --no-eff-email -d vm1095330.hl.had.pm
volumes:
- ./frontend/docker/certbot/conf/:/etc/letsencrypt
- ./frontend/docker/certbot/logs/:/var/log/letsencrypt
- ./frontend/docker/certbot/data:/usr/share/nginx/html/letsencrypt
redis:
image: 'bitnami/redis:latest'
container_name: "plizi_redis"
env_file:
- ./backend/docker/redis/.env
volumes:
- ./redis_data_plizi:/data
ports:
- "6379:6379"
# node:
# build: ./backend/docker/node
# container_name: "plizi_node_ws"
# tty: true
# volumes:
# - ./backend:/app
# ports:
# - "6061:6061"
# yii2_fpm:
# container_name: "plizi_yii2_fpm"
# build:
# context: ./yii2/docker/conf/fpm
# dockerfile: Dockerfile
# volumes:
# - ./yii2:/var/www/vhosts/edi/
# working_dir: /var/www/vhosts/edi
# command: "/usr/sbin/php-fpm7.3 -F -O"
# environment:
# - YII_ENV=dev
# - YII_DEBUG=true
# env_file:
# - ./backend/docker/mysql/.env
# user: "www-data"
#
# yii2_nginx:
# container_name: "plizi_yii2_nginx"
# image: nginx
# ports:
# - "82:80"
# volumes:
# - ./yii2:/var/www/vhosts/edi
# - ./yii2/docker/etc/nginx:/etc/nginx
# depends_on:
# - yii2_fpm
volumes:
mysql_data_plizi:
redis_data_plizi:
mongodb_data_plizi:
mysql8_data_plizi:
neo4j-persistence: