-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (57 loc) · 1.2 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
57
58
59
60
61
62
version: '3.8'
services:
nginx-proxy:
container_name: nginx-proxy
image: nginxproxy/nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
backend:
container_name: backend
build:
context: ./backend
dockerfile: Dockerfile
depends_on:
- mysql
ports:
- 3333:3333
environment:
- VIRTUAL_HOST=tuttecose.loc
- VIRTUAL_PATH=/api
- VIRTUAL_PORT=3333
volumes:
- ./backend:/usr/app/backend
- /usr/app/backend/node_modules
mysql:
container_name: mysql
image: mysql
expose:
- "3306"
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_USER: tuttecose
MYSQL_PASSWORD: password
MYSQL_DATABASE: tuttecose
volumes:
- mysql:/var/lib/mysql
frontend:
container_name: frontend
build:
context: ./frontend
dockerfile: Dockerfile
depends_on:
- backend
ports:
- 5173:5173
environment:
- VIRTUAL_HOST=tuttecose.loc
- VIRTUAL_PATH=/
- VIRTUAL_PORT=5173
volumes:
- ./frontend:/usr/app/frontend
- /usr/app/frontend/node_modules
volumes:
mysql: