-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
130 lines (121 loc) · 2.61 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
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
volumes:
nats-data:
mongo-data:
networks:
internal:
services:
nats:
image: nats
restart: always
command:
- "--js"
- "--sd=/data"
networks:
- internal
# ports:
# - 4222:4222 # for debugging
# - 8222:8222 # for debugging
volumes:
- nats-data:/data
mongodb:
image: mongo:8
restart: always
networks:
- internal
# ports:
# - 27017:27017 # for debugging
volumes:
- mongo-data:/data/db
api-gateway:
image: seraph
restart: always
command:
- api-gateway
depends_on:
- nats
- mongodb
networks:
- internal
ports:
- 8080:8080
environment:
GIN_MODE: release
SERAPH_NATS_URL: nats://nats:4222
SERAPH_MONGO_URL: mongodb://mongodb:27017/
# SERAPH_AUTH_DISABLED: true
SERAPH_AUTH_CONFIGURL: https://localhost:8081/realms/seraph
SERAPH_AUTH_REDIRECTURL: http://localhost:8080/auth/callback
SERAPH_AUTH_CLIENTID: seraph
file-indexer:
image: seraph
restart: always
command:
- file-indexer
depends_on:
- nats
- mongodb
networks:
- internal
environment:
SERAPH_NATS_URL: nats://nats:4222
SERAPH_MONGO_URL: mongodb://mongodb:27017/
thumbnailer:
image: seraph
restart: always
command:
- thumbnailer
depends_on:
- nats
networks:
- internal
environment:
SERAPH_NATS_URL: nats://nats:4222
SERAPH_THUMBNAILER_PROVIDERID: thumbs
deploy:
replicas: 6
shares:
image: seraph
restart: always
command:
- shares-provider
depends_on:
- nats
- mongodb
networks:
- internal
environment:
SERAPH_NATS_URL: nats://nats:4222
SERAPH_MONGO_URL: mongodb://mongodb:27017/
file-provider-dir:
image: seraph
restart: always
command:
- file-provider-dir
depends_on:
- nats
networks:
- internal
# volumes:
# - /some/local/dir:/data
environment:
SERAPH_NATS_URL: nats://nats:4222
SERAPH_FILEPROVIDER_ID: dirtest
SERAPH_FILEPROVIDER_DIR: /data
SERAPH_FILEPROVIDER_READONLY: true
file-provider-smb:
image: seraph
restart: always
command:
- file-provider-smb
depends_on:
- nats
networks:
- internal
environment:
SERAPH_NATS_URL: nats://nats:4222
SERAPH_FILEPROVIDER_ID: smbtest
SERAPH_FILEPROVIDER_ADDR: host:445
SERAPH_FILEPROVIDER_USERNAME:
SERAPH_FILEPROVIDER_PASSWORD:
SERAPH_FILEPROVIDER_SHARENAME: foo
SERAPH_FILEPROVIDER_READONLY: true