forked from RESOStandards/reso-web-api-reference-server
-
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) · 968 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (38 loc) · 968 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
services:
odata-manager-app:
restart: on-failure
build: ./
expose:
- "8080"
ports:
- "8080:8080"
environment:
- SQL_HOST
- SQL_USER
- SQL_PASSWORD
- SQL_CONNECTION_STR
- SQL_DB_DRIVER
- CERT_REPORT_FILENAME
- JPDA_SUSPEND=n # Ensure debugging is off for production
volumes:
- ./target:/usr/local/tomcat/webapps
depends_on:
- docker-mysql
docker-mysql:
restart: always
container_name: docker-mysql
image: mysql/mysql-server
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_DATABASE: reso_data_dictionary_1_7
MYSQL_ROOT_PASSWORD: root
MYSQL_ROOT_HOST: "%"
volumes:
- ./sql:/docker-entrypoint-initdb.d
ports:
- "6033:3306"
healthcheck:
test: '/usr/bin/mysql --user=root --password=root --execute "SHOW DATABASES;"'
interval: 2s
timeout: 20s
retries: 10