-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (38 loc) · 807 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (38 loc) · 807 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
name: store-system
services:
# Java application
app:
build:
context: .
dockerfile: docker/Dockerfile.java
depends_on:
db:
condition: service_healthy
ports:
- "3000:3000"
env_file:
- docker/java-local.env
volumes:
- ./:/usr/src/app
# MySQL database
db:
build:
context: .
dockerfile: docker/Dockerfile.mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: store
MYSQL_USER: admin
MYSQL_PASSWORD: admin
ports:
- "3306:3306"
env_file:
- docker/mysql-local.env
healthcheck:
test: mysqladmin ping -h 127.0.0.1 -u $$MYSQL_USER --password=$$MYSQL_PASSWORD
start_period: 5s
interval: 5s
timeout: 5s
retries: 10
volumes:
ignore: