-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.mysql.yml
78 lines (78 loc) · 1.96 KB
/
compose.mysql.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
services:
redis:
image: redis:7.4.0
volumes:
- ./data/redis:/data
command: ["redis-server", "--save", "60", "1"]
mysql:
image: mysql:8
volumes:
- ./data/mysql:/var/lib/mysql
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
hub:
image: gaianet/gaia-hub:mysql.v0.1.7
environment:
- LOG_FILE=/logs/gaia-hub.log
- DATABASE_URL=mysql://gaia:${MYSQL_PASSWORD}@mysql/gaia.domain
- REDIS_URL=redis://:@redis:6379/0
- SERVER_HOST=0.0.0.0
- SERVER_PORT=1337
- GRPC_SERVER_PORT=1338
- GRPC_AUTH_SECRET_KEY=${GRPC_AUTH_SECRET_KEY}
- DB_POOL_SIZE=50
- DB_POOL_MIN_SIZE=20
volumes:
- ./logs:/logs
depends_on:
- redis
- mysql
frps:
image: gaianet/gaia-frp:v0.1.1
volumes:
- ./frps/conf:/app/conf
ports:
- "7000:7000"
depends_on:
- hub
grpc-gateway:
image: gaianet/domain-grpc-gateway:v0.1.1
environment:
- GRPC_SERVER_ENDPOINT=${GRPC_SERVER_ENDPOINT}
- GRPC_AUTH_SECRET_KEY=${GRPC_AUTH_SECRET_KEY}
openresty:
image: gaianet/gaia-openresty:bullseye
volumes:
- ./nginx/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf
- ./nginx/conf.d:/etc/nginx/conf.d
- ./logs/nginx:/logs/nginx
ports:
- "80:80"
- "443:443"
depends_on:
- frps
- hub
- grpc-gateway
logrotate:
image: blacklabelops/logrotate
volumes:
- ./logs/nginx:/logs
- ./logs/nginx/old:/logs/old
environment:
- LOGS_DIRECTORIES=/logs
- LOGROTATE_OLDDIR=/logs/old
- LOGROTATE_COMPRESSION=compress
- LOGROTATE_INTERVAL=daily
- LOGROTATE_COPIES=10
depends_on:
- openresty
vector:
image: timberio/vector:0.41.1-alpine
volumes:
- ./vector:/etc/vector
- ./logs/nginx:/logs/nginx
environment:
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
depends_on:
- openresty