-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (50 loc) · 972 Bytes
/
docker-compose.yml
File metadata and controls
54 lines (50 loc) · 972 Bytes
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
services:
backend:
build:
context: .
dockerfile: Dockerfile
container_name: tomateo-backend
working_dir: /var/www
ports:
- "8000:8000"
volumes:
- .:/var/www
- /var/www/vendor
depends_on:
- db
networks:
- tomateo-network
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: tomateo-frontend
ports:
- "5173:5173"
volumes:
- ./frontend:/app
- /app/node_modules
depends_on:
- backend
networks:
- tomateo-network
db:
image: mysql:8.0
container_name: tomateo-db
restart: unless-stopped
environment:
MYSQL_DATABASE: tomateo
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: user
MYSQL_PASSWORD: password
ports:
- "3308:3306"
volumes:
- dbdata:/var/lib/mysql
networks:
- tomateo-network
volumes:
dbdata:
networks:
tomateo-network:
driver: bridge