-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
69 lines (64 loc) · 1.14 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
69 lines (64 loc) · 1.14 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
version: "3.9"
services:
frontend:
container_name: frontend
build:
context: ./Frontend
dockerfile: Dockerfile
ports:
- "5173:5173"
volumes:
- ./Frontend:/frontend
tty: true
stdin_open: true
restart: always
command: ["npm", "run", "dev"]
networks:
- erum
database:
container_name: database
image: mysql:8.0
env_file:
- ./Backend/.env
ports:
- "3306:3306"
networks:
- erum
backend:
container_name: backend
env_file:
- ./Backend/.env
build:
context: ./Backend
dockerfile: Dockerfile
volumes:
- ./Backend:/backend
ports:
- "8080:8080"
depends_on:
- database
tty: true
networks:
- erum
nginx:
container_name: nginx
restart: unless-stopped
build:
context: ./nginx
ports:
- "80:80"
- "443:443"
expose:
- 80
- 443
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/nginx.conf
- ./nginx/log:/var/log/nginx
depends_on:
- frontend
- backend
networks:
- erum
networks:
erum:
driver: bridge