-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (36 loc) · 804 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (36 loc) · 804 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
name: tp1
services:
mysql:
container_name: tdd-mysql
networks:
- tdd-network
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=Password_123
- MYSQL_DATABASE=ejercicio
image: mysql:latest
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
timeout: 10s
retries: 5
tp1:
depends_on:
mysql:
condition: service_healthy
build:
context: .
dockerfile: Dockerfile
networks:
- tdd-network
ports:
- 8080:8080
environment:
- SPRING_DATASOURCE_URL=jdbc:mysql://tdd-mysql:3306/ejercicio
- SPRING_DATASOURCE_USERNAME=root
- SPRING_DATASOURCE_PASSWORD=Password_123
image: tp1:latest
networks:
tdd-network:
external: true
name: tdd-network