-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (54 loc) · 1.47 KB
/
docker-compose.yml
File metadata and controls
59 lines (54 loc) · 1.47 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
version: '3'
services:
caddy:
image: caddy:latest
container_name: matrixdl-caddy
ports:
- "80:80"
volumes:
- ./caddy/data:/data # TODO: use docker volume
- ./caddy/config:/etc/caddy
networks:
- matrixdl
frontend:
image: ghcr.io/sysumatrixdl/frontend:latest
container_name: frontend
networks:
- matrixdl
environment:
- "NODE_ENV=development" # https://github.com/resend/react-email/issues/1790
- "BACKEND_SUFFIX=http://backend:8000"
- "GRAFANA_URL=https://matrixdl.fuusen.space/public-dashboards/5192664c23254fd3ba56f3ae1701a1a0?orgId=1&refresh=5s"
backend:
image: ghcr.io/sysumatrixdl/backend:latest
container_name: backend
volumes:
- ./backend:/app/tmp
- /home/matrixdl/.ssh:/root/.ssh
environment:
- "BACKEND_HOST=backend"
- "BACKEND_PORT=8000"
- "MATRIXDL_ENVIROMENT=PRODUCTION"
# - "MATRIXDL_WORKER=4"
networks:
- matrixdl
depends_on:
- open-gauss
open-gauss:
image: ghcr.io/sysumatrixdl/opengauss:latest
container_name: open-gauss
ports:
- "5432:5432" # TODO: use sqlpad instead of expose port here
volumes:
- ./data:/opt/openGauss/data # TODO: use docker volume
networks:
- matrixdl
networks:
matrixdl:
driver: bridge
ipam:
# 避免和校园网网段(172.12.0.0/16)冲突
driver: default
config:
- subnet: 192.168.114.0/24
gateway: 192.168.114.254