-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (33 loc) · 865 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (33 loc) · 865 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
version: '3.8'
services:
mysql:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD:-devpassword}
MYSQL_DATABASE: wallet_db
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 5
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
environment:
SERVER_PORT: 8080
DB_URL: jdbc:mysql://mysql:3306/wallet_db?allowMultiQueries=true&useSSL=false&characterEncoding=UTF-8&autoReconnect=true
DB_USERNAME: root
DB_PASSWORD: ${DB_PASSWORD:-devpassword}
WALLET_KEYSTORE_PASSWORD: ${WALLET_KEYSTORE_PASSWORD:-change-me}
depends_on:
mysql:
condition: service_healthy
volumes:
mysql_data: