-
Notifications
You must be signed in to change notification settings - Fork 207
/
Copy pathdocker-compose.yml
49 lines (43 loc) · 974 Bytes
/
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"
services:
db:
image: mysql:9.1.0
restart: always
environment:
MYSQL_DATABASE: 'femr_db'
MYSQL_USER: 'femr'
MYSQL_PASSWORD: 'password'
MYSQL_ROOT_PASSWORD: 'password'
ports:
- '3306:3306'
expose:
- '3306'
command:
- "mysqld"
- "--log-bin-trust-function-creators=1"
volumes:
- db-data:/var/lib/mysql
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
timeout: 20s
retries: 10
femr:
build: .
links:
- db:mysql
depends_on:
db:
condition: service_healthy
tty: true
restart: on-failure:10
ports:
- '9000:9000'
environment:
DB_URL: 'jdbc:mysql://db:3306/femr_db?characterEncoding=UTF-8&useSSL=false&allowPublicKeyRetrieval=true'
DB_USER: 'femr'
DB_PASS: 'password'
IS_DOCKER: 'true'
volumes:
- ./speedtest:/usr/src/speedtest
volumes:
db-data: