-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
194 lines (185 loc) · 4.85 KB
/
Copy pathdocker-compose.yml
File metadata and controls
194 lines (185 loc) · 4.85 KB
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
name: sentinel
services:
kerbecs:
container_name: sentinel-kerbecs
image: bk1031/kerbecs:latest
restart: always
ports:
- "10310:10310"
- "10300:10300"
volumes:
- ./kerbecs.yaml:/etc/kerbecs/kerbecs.yaml:ro
environment:
KERBECS_CONFIG: /etc/kerbecs/kerbecs.yaml
depends_on:
- core
- oauth
- discord
- saml
- google
- web
core:
container_name: sentinel-core
image: golang:1.26-alpine
restart: always
working_dir: /app
command: >
sh -c "go install github.com/air-verse/air@latest && air"
volumes:
- ./core:/app
- core_gopath:/go
depends_on:
- db
environment:
ENV: DEV
PORT: 9999
DATABASE_HOST: db
DATABASE_PORT: 5432
DATABASE_USER: postgres
DATABASE_PASSWORD: ${POSTGRES_PASSWORD}
DATABASE_NAME: sentinel
ISSUER: http://localhost:10310
INTERNAL_BOOTSTRAP_SECRET: ${INTERNAL_BOOTSTRAP_SECRET}
discord:
container_name: sentinel-discord
image: golang:1.26-alpine
restart: always
working_dir: /app
command: >
sh -c "go install github.com/air-verse/air@latest && air"
volumes:
- ./discord:/app
- discord_gopath:/go
depends_on:
- db
environment:
ENV: DEV
PORT: 9998
DATABASE_HOST: db
DATABASE_PORT: 5432
DATABASE_USER: postgres
DATABASE_PASSWORD: ${POSTGRES_PASSWORD}
DATABASE_NAME: sentinel
KERBECS_ENDPOINT: http://kerbecs:10300
KERBECS_USER: admin
KERBECS_PASSWORD: admin
DISCORD_TOKEN: ${DISCORD_TOKEN}
DISCORD_GUILD: ${DISCORD_GUILD}
DISCORD_PREFIX: d!
WEB_BASE_URL: http://localhost:10310
INTERNAL_BOOTSTRAP_SECRET: ${INTERNAL_BOOTSTRAP_SECRET}
oauth:
container_name: sentinel-oauth
image: golang:1.26-alpine
restart: always
working_dir: /app
command: >
sh -c "go install github.com/air-verse/air@latest && air"
volumes:
- ./oauth:/app
- oauth_gopath:/go
depends_on:
- db
environment:
ENV: DEV
PORT: 9997
DATABASE_HOST: db
DATABASE_PORT: 5432
DATABASE_USER: postgres
DATABASE_PASSWORD: ${POSTGRES_PASSWORD}
DATABASE_NAME: sentinel
KERBECS_ENDPOINT: http://kerbecs:10300
KERBECS_USER: admin
KERBECS_PASSWORD: admin
ISSUER: http://localhost:10310
DISCORD_CLIENT_ID: ${DISCORD_CLIENT_ID}
DISCORD_CLIENT_SECRET: ${DISCORD_CLIENT_SECRET}
DISCORD_REDIRECT_URI: http://localhost:10310/auth/login/discord
INTERNAL_BOOTSTRAP_SECRET: ${INTERNAL_BOOTSTRAP_SECRET}
TEAM_GOOGLE_CLIENT_ID: ${TEAM_GOOGLE_CLIENT_ID}
saml:
container_name: sentinel-saml
image: golang:1.26-alpine
restart: always
working_dir: /app
command: >
sh -c "go install github.com/air-verse/air@latest && air"
volumes:
- ./saml:/app
- saml_gopath:/go
depends_on:
- db
environment:
ENV: DEV
PORT: 9996
DATABASE_HOST: db
DATABASE_PORT: 5432
DATABASE_USER: postgres
DATABASE_PASSWORD: ${POSTGRES_PASSWORD}
DATABASE_NAME: sentinel
KERBECS_ENDPOINT: http://kerbecs:10300
KERBECS_USER: admin
KERBECS_PASSWORD: admin
ISSUER: http://localhost:10310
INTERNAL_BOOTSTRAP_SECRET: ${INTERNAL_BOOTSTRAP_SECRET}
google:
container_name: sentinel-google
image: golang:1.26-alpine
restart: always
working_dir: /app
command: >
sh -c "go install github.com/air-verse/air@latest && air"
volumes:
- ./google:/app
- google_gopath:/go
depends_on:
- db
environment:
ENV: DEV
PORT: 9995
DATABASE_HOST: db
DATABASE_PORT: 5432
DATABASE_USER: postgres
DATABASE_PASSWORD: ${POSTGRES_PASSWORD}
DATABASE_NAME: sentinel
KERBECS_ENDPOINT: http://kerbecs:10300
KERBECS_USER: admin
KERBECS_PASSWORD: admin
INTERNAL_BOOTSTRAP_SECRET: ${INTERNAL_BOOTSTRAP_SECRET}
GOOGLE_SERVICE_ACCOUNT: ${GOOGLE_SERVICE_ACCOUNT}
GOOGLE_ADMIN_SUBJECT: ${GOOGLE_ADMIN_SUBJECT}
web:
container_name: sentinel-web
image: node:22-alpine
restart: always
working_dir: /app
command: >
sh -c "npm install && npm run dev -- --host 0.0.0.0"
volumes:
- ./web:/app
- web_node_modules:/app/node_modules
ports:
- "5173:5173"
environment:
VITE_API_URL: http://localhost:10310
VITE_DISCORD_CLIENT_ID: ${DISCORD_CLIENT_ID}
db:
container_name: sentinel-db
image: postgres:18-alpine
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: sentinel
ports:
- "127.0.0.1:5432:5432"
volumes:
- pgdata:/var/lib/postgresql
volumes:
pgdata:
core_gopath:
discord_gopath:
oauth_gopath:
saml_gopath:
google_gopath:
web_node_modules: