-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (63 loc) · 1.66 KB
/
docker-compose.yml
File metadata and controls
69 lines (63 loc) · 1.66 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
#Build command: docker compose --profile sim_method build
#Run command: docker compose up #you dont need to run the simulation methods' containers
services:
db_service:
platform: linux/amd64
image: postgres:13
ports:
- "5432:5432"
env_file:
- .env.db
volumes:
- postgresql_data:/var/lib/postgresql/data/
redis:
platform: linux/amd64
image: redis:alpine
frontend:
platform: linux/amd64
build:
context: ./frontend-v2 # path to your local frontend Dockerfile
dockerfile: Dockerfile # optional if named Dockerfile
ports:
- "5173:5173"
environment:
- REACT_APP_API_URL=http://backend:5001
depends_on:
- backend
backend:
platform: linux/amd64
build:
context: . #root of choras
dockerfile: backend/Dockerfile
ports:
- "5001:5001"
env_file:
- .env.api
depends_on:
- db_service
- redis
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./uploads:/app/uploads
- ./simulation-backend:/app/simulation-backend
# - /c/Users/20255413/.ssh:/root/.ssh:ro
# BUILD-ONLY: DE simulation (profile: sim_method)
de-method:
platform: linux/amd64
build:
context: ./simulation-backend
dockerfile: de_method/Dockerfile
image: de_image:latest
profiles:
- sim_method # Skipped in docker compose up
# BUILD-ONLY: DG simulation (profile: sim_method)
dg-method:
platform: linux/amd64
build:
context: ./simulation-backend
dockerfile: dg_method/Dockerfile
image: dg_image:latest
profiles:
- sim_method # Skipped in docker compose up
volumes:
postgresql_data: