-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
69 lines (61 loc) · 2.11 KB
/
docker-compose.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
version: "3.9"
services:
proxy:
image: nginx:stable-alpine
restart: unless-stopped
ports:
- "8080:80"
volumes:
- "./proxy/api.conf:/etc/nginx/conf.d/default.conf:ro"
api:
image: registry.gitlab.com/george/shoya-go/api:latest
restart: unless-stopped
ports:
- "9000:9000"
environment:
- SHOYA_CONFIG_JSON={"api":{"fiber":{"listen_address":"0.0.0.0:9000","proxy_header":"X-Shoya-Real-IP","prefork":false},"redis":{"host":"redis:6379","password":"change_me","db":0},"postgres":{"host":"postgres","port":5432,"user":"shoya","password":"change_me","db":"shoya"},"apiConfigRefreshRateMs":10}}
discovery:
image: registry.gitlab.com/george/shoya-go/discovery:latest
restart: unless-stopped
environment:
- SHOYA_CONFIG_JSON={"discovery":{"database":{"host":"postgres","port":5432,"username":"shoya","password":"change_me","database":"shoya"},"redis":{"host":"redis:6379","password":"change_me","database":0},"server":{"address":"0.0.0.0:9000"},"apiConfigRefreshRateMs":10,"discoveryApiKey":"change_me"}}
files:
image: registry.gitlab.com/george/shoya-go/files:latest
restart: unless-stopped
environment:
- SHOYA_CONFIG_JSON={"files":{"listen_address":"0.0.0.0:9000","redis":{"host":"redis:6379","password":"change_me","db":0},"apiConfigRefreshRateMs":10}}
redis:
image: redis/redis-stack-server
restart: unless-stopped
volumes:
- "redis_data:/data"
ports:
- "6379:6379"
environment:
- REDIS_ARGS=--requirepass change_me
postgres:
image: postgres
restart: unless-stopped
volumes:
- pg_data:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
- POSTGRES_USER=shoya
- POSTGRES_PASSWORD=change_me
minio:
image: quay.io/minio/minio:RELEASE.2022-06-11T19-55-32Z
restart: unless-stopped
command: server --console-address ":9001" /data
volumes:
- minio_data:/data
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: change_me
volumes:
minio_data:
driver: local
pg_data:
driver: local
redis_data:
driver: local