-
Notifications
You must be signed in to change notification settings - Fork 27
/
compose.yaml
39 lines (39 loc) · 1000 Bytes
/
compose.yaml
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
services:
despensa-rest-api:
build:
context: .
target: development
ports:
- 8080:8080
- 5005:5005
environment:
- DATASOURCE_MYSQL_URL=jdbc:mysql://despensa-app-mysql:3306/despensa_app
- MYSQL_USER=despensa_app
- MYSQL_PASSWORD=despensa_app
- APP_SECURITY_JWT_SECRET=my_secret_key_my_secret_key_1234
depends_on:
despensa-app-mysql:
condition: service_healthy
develop:
watch:
- action: rebuild
path: .
despensa-app-mysql:
image: mysql:8
restart: always
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "--silent" ]
interval: 3s
retries: 5
start_period: 30s
volumes:
- despensa-app-mysql-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_USER=despensa_app
- MYSQL_PASSWORD=despensa_app
- MYSQL_DATABASE=despensa_app
ports:
- 3307:3306
volumes:
despensa-app-mysql-data: