forked from RESOStandards/reso-web-api-reference-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·73 lines (70 loc) · 1.76 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
services:
odata-manager-app:
restart: on-failure
build: ./
ports:
- "8080:8080" # Only expose the application port for production
environment:
- LOOKUP_TYPE
- MONGO_SYNC_CONNECTION_STR
- SQL_CONNECTION_STR
- SQL_HOST
- SQL_USER
- SQL_PASSWORD
- SQL_DB_DRIVER
- CERT_REPORT_FILENAME
- ENABLE_DEBUG=false # Ensure debugging is off for production
volumes:
- ./build/libs:/usr/local/tomcat/webapps
depends_on:
- docker-mariadb
docker-mariadb:
restart: always
container_name: docker-mariadb
image: mariadb:latest
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
phpmyadmin:
image: phpmyadmin/phpmyadmin
platform: linux/amd64
restart: always
environment:
PMA_HOST: docker-mariadb
PMA_USER: root
PMA_PASSWORD: root
ports:
- "6034:80"
depends_on:
- docker-mariadb
# mongo:
# image: mongo
# restart: always
# ports:
# - 27017:27017
# environment:
# MONGO_INITDB_ROOT_USERNAME: root
# MONGO_INITDB_ROOT_PASSWORD: root
# volumes:
# - ./mongo-init-scripts:/docker-entrypoint-initdb.d
#
# mongo-express:
# image: mongo-express
# restart: always
# ports:
# - 8081:8081
# environment:
# ME_CONFIG_MONGODB_ADMINUSERNAME: root
# ME_CONFIG_MONGODB_ADMINPASSWORD: root
# ME_CONFIG_MONGODB_URL: mongodb://root:root@mongo:27017/
# ME_CONFIG_BASICAUTH: false