-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (54 loc) · 1.25 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
version: "3"
name: "csie-camp-backbone"
services:
server:
build: .
image: csie-camp-backbone
restart: unless-stopped
command: bash -c "npx prisma db push && npm run server"
env_file:
- .env
expose:
- "${PORT}:${PORT}"
depends_on:
- db
- redis
studio:
build: .
image: csie-camp-backbone
restart: unless-stopped
expose:
- 5555:5555
command: npx prisma studio
env_file:
- .env
depends_on:
- db
db:
image: postgres:latest
restart: unless-stopped
env_file:
- .env
expose:
- 5432:5432
volumes:
- db-data:/database
redis:
image: redis:latest
restart: unless-stopped
expose:
- 6379:6379
volumes:
- redis:/redis
tunnel:
image: cloudflare/cloudflared:latest
command: "tunnel --no-autoupdate run --token ${CLOUDFLARED_TOKEN}"
restart: unless-stopped
environment:
TUNNEL_TRANSPORT_PROTOCOL: "http2"
depends_on:
- server
- studio
volumes:
db-data:
redis: