-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (46 loc) · 1.26 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
version: '3.8'
networks:
vue-express-crud-network:
driver: bridge
services:
vue-expressjs-crud-webapi:
image: vue-expressjs-crud-webapi:v1
depends_on:
- express-mysql-db
container_name: vue-expressjs-crud-webapi
ports:
- "8088:3000"
build:
context: ./express-crud-back
dockerfile: dockerfile
networks:
- vue-express-crud-network
express-mysql-db:
image: vue-expressjs-crud-database:v1
command: --default-authentication-plugin=mysql_native_password
container_name: vue-expressjs-crud-database
environment:
- MYSQL_DATABASE=vueexpresscruddatabase
- MYSQL_ROOT_PASSWORD=123456
ports:
- "3309:3306"
build:
context: ./express-crud-back/database-config
dockerfile: Dockerfile
restart: always
volumes:
- ./express-crud-back/dataaccess/mysql-data:/var/lib/mysql
networks:
- vue-express-crud-network
vue-app:
image: vue3-expressjs-crud-vue-app:v1
container_name: vue3-expressjs-crud-vue-app
build:
context: ./vue-crud-front
dockerfile: Dockerfile
ports:
- "8080:80" # Puedes mapear el puerto 80 del contenedor al puerto que prefieras en tu máquina local
networks:
- vue-express-crud-network
volumes:
mysql-data: