-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
108 lines (103 loc) · 2.58 KB
/
docker-compose.yaml
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
version: '3.8'
services:
manager:
build:
context: .
args:
- PROJECT=manager
image: opless-manager:latest
restart: unless-stopped
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
ports:
- "${MANAGER_PORT:-8081}:${MANAGER_PORT:-8081}"
environment:
GIN_MODE: "release"
PORT: ${MANAGER_PORT:-8081}
INTERNAL_NETWORK: opless_lambda_net
REDIS_ENDPOINT: "redis:6379"
MINIO_ENDPOINT: "minio:9000"
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY:-MINIO_ACCESS_KEY}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY:-MINIO_SECRET_KEY}
TMP_TTL: ${TMP_TTL:-900}
depends_on:
minio:
condition: service_healthy
redis:
condition: service_healthy
networks:
- opless_default_net
- opless_lambda_net
router:
build:
context: .
args:
- PROJECT=router
image: opless-router:latest
restart: unless-stopped
ports:
- "${ROUTER_PORT:-8080}:${ROUTER_PORT:-8080}"
environment:
GIN_MODE: "release"
PORT: ${ROUTER_PORT:-8080}
REDIS_ENDPOINT: "redis:6379"
depends_on:
redis:
condition: service_healthy
restart: true
networks:
- opless_default_net
- opless_lambda_net
minio:
image: "quay.io/minio/minio"
command: server --console-address ":9001" /data/minio
hostname: minio
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY:-MINIO_ACCESS_KEY}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY:-MINIO_SECRET_KEY}
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 5s
timeout: 5s
retries: 5
volumes:
- "minio_data:/data"
networks:
- opless_default_net
redis:
image: "redis:7-alpine"
command: >
redis-server
--appendonly yes
--appendfilename "appendonly.aof"
--appenddirname "appendonlydir"
--appendfsync everysec
--no-appendfsync-on-rewrite no
--auto-aof-rewrite-percentage 100
--auto-aof-rewrite-min-size 64mb
--aof-load-truncated yes
--aof-use-rdb-preamble yes
--aof-timestamp-enabled no
--notify-keyspace-events KA
volumes:
- "redis_data:/data"
healthcheck:
test: ["CMD", "redis-cli","ping"]
interval: 5s
timeout: 5s
retries: 5
networks:
- opless_default_net
volumes:
minio_data:
redis_data:
networks:
opless_lambda_net:
name: opless_lambda_net
driver: bridge
opless_default_net:
name: opless_default_net
driver: bridge