This repository has been archived by the owner on Nov 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
82 lines (77 loc) · 1.97 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
version: '3.8'
services:
manager:
build: manager
image: doless-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: doless_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
- redis
networks:
- doless_default_net
- doless_lambda_net
handler:
build: handler
image: doless-handler:latest
restart: unless-stopped
ports:
- "${HANDLER_PORT:-8080}:${HANDLER_PORT:-8080}"
environment:
GIN_MODE: "release"
PORT: ${HANDLER_PORT:-8080}
REDIS_ENDPOINT: "redis:6379"
depends_on:
- redis
networks:
- doless_default_net
- doless_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", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
volumes:
- "minio_data:/data"
networks:
- doless_default_net
redis:
image: "redis:7-alpine"
command: redis-server /usr/local/etc/redis/redis.conf
volumes:
- "redis_data:/data"
- "./redis:/usr/local/etc/redis"
networks:
- doless_default_net
volumes:
minio_data:
redis_data:
networks:
doless_lambda_net:
name: doless_lambda_net
driver: bridge
doless_default_net:
name: doless_default_net
driver: bridge