-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
60 lines (56 loc) · 1.25 KB
/
docker-compose.dev.yml
File metadata and controls
60 lines (56 loc) · 1.25 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
services:
goderpad-redis:
image: redis:7-alpine
container_name: goderpad-redis
ports:
- "6379:6379"
profiles:
- code-execution
goderpad-backend:
build:
context: .
dockerfile: Dockerfile.backend
container_name: goderpad-backend
ports:
- "7778:7778"
environment:
- REDIS_ADDR=goderpad-redis:6379
volumes:
- ./past:/app/past
goderpad-runner:
build:
context: .
dockerfile: Dockerfile.runner
container_name: goderpad-runner
environment:
- REDIS_ADDR=goderpad-redis:6379
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- goderpad-redis
profiles:
- code-execution
goderpad-frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
container_name: goderpad-frontend
ports:
- "7777:7777"
volumes:
- ./frontend:/app
- /app/node_modules
depends_on:
- goderpad-backend
environment:
- VITE_API_URL=http://localhost:7778
- VITE_WS_URL=ws://localhost:7778
goderpad-nginx:
image: nginx:alpine
volumes:
- ./nginx.dev.conf:/etc/nginx/nginx.conf
depends_on:
- goderpad-backend
- goderpad-frontend
ports:
- 3001:80