-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (70 loc) · 1.28 KB
/
docker-compose.yml
File metadata and controls
70 lines (70 loc) · 1.28 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
services:
frontend:
image: frontend
container_name: frontend-container
build:
context: .
dockerfile: Dockerfile.dev
ports:
- "5173:5173"
env_file:
- .env
volumes:
- .:/app
- /app/node_modules
depends_on:
- backend
networks:
- app-network-1
profiles:
- dev
backend:
image: backend
container_name: backend-container
build:
context: ./backend
dockerfile: Dockerfile.dev
ports:
- "5000:5000"
env_file:
- ./backend/.env
volumes:
- ./backend:/app
- /app/node_modules
networks:
- app-network-1
profiles:
- dev
frontend-prod:
image: frontend-prod
container_name: frontend-prod-container
build:
context: .
dockerfile: Dockerfile.prod
ports:
- "3000:3000"
env_file:
- .env
depends_on:
- backend-prod
networks:
- app-network-2
profiles:
- prod
backend-prod:
image: backend-prod
container_name: backend-prod-container
build:
context: backend
dockerfile: Dockerfile.prod
ports:
- "5000:5000"
env_file:
- backend/.env
networks:
- app-network-2
profiles:
- prod
networks:
app-network-1:
app-network-2: