Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (76 loc) · 1.9 KB
/
Copy pathdocker-compose.yml
File metadata and controls
80 lines (76 loc) · 1.9 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
services:
kerbecs:
container_name: notify-kerbecs
image: bk1031/kerbecs:latest
restart: always
ports:
- "127.0.0.1:10310:10310"
volumes:
- ./kerbecs.yaml:/etc/kerbecs/kerbecs.yaml:ro
environment:
KERBECS_CONFIG: /etc/kerbecs/kerbecs.yaml
depends_on:
- notify
- web
notify:
container_name: notify-notify
build:
context: ./notify
dockerfile: Dockerfile.dev
restart: always
working_dir: /app
ports:
- "127.0.0.1:9999:9999"
volumes:
- ./notify:/app
- notify_gopath:/go
depends_on:
- db
environment:
ENV: DEV
PORT: 9999
DATABASE_HOST: db
DATABASE_PORT: 5432
DATABASE_USER: postgres
DATABASE_PASSWORD: password
DATABASE_NAME: notify
SENTINEL_URL: ${SENTINEL_URL}
SENTINEL_CLIENT_ID: ${SENTINEL_CLIENT_ID}
SENTINEL_CLIENT_SECRET: ${SENTINEL_CLIENT_SECRET}
SENTINEL_REDIRECT_URI: ${SENTINEL_REDIRECT_URI}
SENTINEL_SA_TOKEN: ${SENTINEL_SA_TOKEN}
RESEND_API_KEY: ${RESEND_API_KEY}
EMAIL_FROM: ${EMAIL_FROM}
DISCORD_BOT_TOKEN: ${DISCORD_BOT_TOKEN}
web:
container_name: notify-web
image: node:22-alpine
restart: always
working_dir: /app
command: >
sh -c "npm install && npm run dev -- --host 0.0.0.0"
ports:
- "127.0.0.1:5173:5173"
volumes:
- ./web:/app
- web_node_modules:/app/node_modules
environment:
VITE_API_URL: http://localhost:10310
VITE_SENTINEL_URL: ${SENTINEL_URL}
VITE_SENTINEL_CLIENT_ID: ${SENTINEL_CLIENT_ID}
db:
container_name: notify-db
image: postgres:18-alpine
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: notify
ports:
- "127.0.0.1:5435:5432"
volumes:
- pgdata:/var/lib/postgresql
volumes:
notify_gopath:
web_node_modules:
pgdata: