-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
177 lines (169 loc) · 4.32 KB
/
docker-compose.yml
File metadata and controls
177 lines (169 loc) · 4.32 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
version: '3.5'
services:
nginx:
container_name: hook__panel_nginx
image: nginx
restart: unless-stopped
depends_on:
- php
- node
volumes:
- ./backend/public:/var/www/public:ro
- ./frontend/build:/usr/share/nginx/html:ro
- ./docker/nginx/conf.d/:/etc/nginx/conf.d:ro
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./docker/nginx/log/:/var/log/nginx/
ports:
- target: 80
published: 80
protocol: tcp
mode: host
- target: 8080
published: 8089
protocol: tcp
mode: host
networks:
- frontend
- backend
logging:
driver: "json-file"
options:
max-size: "50m"
php:
container_name: hook__panel_php
build:
context: .
target: php
restart: unless-stopped
depends_on:
- mysql
volumes:
- ./backend/:/var/www:rw
- ./backend/storage/:/var/www/storage/:rw
- /var/www/bootstrap/cache/
working_dir: /var/www
networks:
- backend
ports:
- "${PHP_SOCKETS_PORT}:8000"
expose:
- ${PHP_SOCKETS_PORT}
logging:
driver: "json-file"
options:
max-size: "50m"
environment:
DB_HOST: '${MYSQL_HOST:?MYSQL_HOST required}'
DB_PORT: '${MYSQL_PORT:?MYSQL_PORT required}'
DB_DATABASE: '${MYSQL_DATABASE:?MYSQL_DATABASE required}'
DB_USERNAME: '${MYSQL_USER:?MYSQL_USER:? required}'
DB_PASSWORD: '${MYSQL_PASSWORD:?MYSQL_PASSWORD required}'
DB_TIMEZONE: '${TIMEZONE:?TIMEZONE required}'
APP_TIMEZONE: '${TIMEZONE:?TIMEZONE required}'
APP_URL: '${BACKEND_URL:?BACKEND_URL required}'
APP_DEBUG: '${BACKEND_DEBUG}'
node:
container_name: hook__panel_node
image: mhart/alpine-node:latest
working_dir: /var/www
tty: true
volumes:
- ./frontend/:/var/www:rw,cached
networks:
- frontend
logging:
driver: "json-file"
options:
max-size: "50m"
mysql:
image: mysql:8.0.31
command:
- '--character-set-server=utf8mb4'
- '--skip-log-bin'
- '--sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'
container_name: hook__panel_mysql
restart: unless-stopped
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_HOST: '%'
volumes:
- ./docker/mysql/my.cnf:/etc/mysql/my.cnf
- ./docker/mysql-files:/var/lib/mysql-files
- ./mysqldata:/var/lib/mysql:rw,delegated
networks:
- backend
ports:
- "${MYSQL_PORT}:3306"
logging:
driver: "json-file"
options:
max-size: "50m"
golang:
build:
context: .
target: golang
container_name: hook__panel_golang
volumes:
- ./golang/:/app:rw,cached
ports:
- "${GOLANG_PORT}:3434"
restart: unless-stopped
depends_on:
- mysql
networks:
- backend
- frontend
logging:
driver: "json-file"
options:
max-size: "50m"
asp:
container_name: hook__panel_asp
build:
context: ./asp.net
dockerfile: TelegramInjectionBot/Dockerfile
target: final
command: ["dotnet", "TelegramInjectionBot.dll"]
ports:
- "5000:80"
depends_on:
- mysql
networks:
- backend
tty: true
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "50m"
environment:
TELEGRAM_TOKEN: '${TELEGRAM_TOKEN:?TELEGRAM_TOKEN required}'
MYSQL_PORT: '${MYSQL_PORT:?MYSQL_PORT required}'
MYSQL_DATABASE: '${MYSQL_DATABASE:?MYSQL_DATABASE required}'
MYSQL_USER: '${MYSQL_USER:?MYSQL_USER:? required}'
MYSQL_PASSWORD: '${MYSQL_PASSWORD:?MYSQL_PASSWORD required}'
MYSQL_HOST: '${MYSQL_HOST:?MYSQL_HOST required}'
phpmyadmin:
container_name: hook__panel_phpmyadmin
image: phpmyadmin/phpmyadmin:latest
restart: unless-stopped
depends_on:
- mysql
environment:
PMA_HOST: hook__panel_mysql
PMA_ABSOLUTE_URI: /mssql/
UPLOAD_LIMIT: 512M
networks:
- backend
- frontend
logging:
driver: "json-file"
options:
max-size: "50m"
networks:
frontend:
driver: bridge
backend: