-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
93 lines (87 loc) · 2.26 KB
/
docker-compose.yml
File metadata and controls
93 lines (87 loc) · 2.26 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
services:
postgres:
image: postgres:15-alpine
environment:
POSTGRES_DB: demo
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- postgres_data_v0.1:/var/lib/postgresql/data
networks:
- demo-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
gateway:
image: tensormesh/lmignite-gateway:latest
ports:
- 8000:8000
volumes:
- gateway_data_v0.1:/root
networks:
- demo-network
healthcheck:
test: ["CMD-SHELL", "nc -zv localhost 8000"]
interval: 10s
timeout: 5s
migrate:
image: tensormesh/lmignite-ui:latest
environment:
- NODE_ENV=production
- DB_HOST=postgres
- DB_PORT=5432
- DB_USERNAME=postgres
- DB_PASSWORD=postgres
- DB_NAME=demo
command: kysely migrate:latest
working_dir: /app/src/server
depends_on:
postgres:
condition: service_healthy
networks:
- demo-network
restart: "no"
app:
image: tensormesh/lmignite-ui:latest
ports:
- "3001:3001"
environment:
- NODE_ENV=production
- PORT=3001
- DB_HOST=postgres
- DB_PORT=5432
- DB_USERNAME=postgres
- DB_PASSWORD=postgres
- DB_NAME=demo
- GATEWAY_API_URL=http://gateway:8000
- ANONYMOUS_MODE=true
# in anonymous mode, these following vars are ignored
- JWT_SECRET=your-super-secret-jwt-key-change-in-production
- GOOGLE_CLIENT_ID=your-google-client-id
- GOOGLE_CLIENT_SECRET=your-google-client-secret
- GOOGLE_CALLBACK_URL=http://localhost:3001/auth/google/callback
- GITHUB_CLIENT_ID=your-github-client-id
- GITHUB_CLIENT_SECRET=your-github-client-secret
- GITHUB_CALLBACK_URL=http://localhost:3001/auth/github/callback
depends_on:
postgres:
condition: service_healthy
gateway:
condition: service_healthy
migrate:
condition: service_completed_successfully
networks:
- demo-network
restart: unless-stopped
command: node dist/src/server/main
volumes:
postgres_data_v0.1:
driver: local
gateway_data_v0.1:
driver: local
networks:
demo-network:
driver: bridge