forked from AtlasOfLivingAustralia/ala-cas-5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (42 loc) · 1.1 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
services:
mysqldb:
image: mysql:8.0
volumes:
- db_data_mysql_cas:/var/lib/mysql
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
MYSQL_DATABASE: emmet
MYSQL_USER: cas
MYSQL_PASSWORD: cas
ports:
- 3306:3306
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
mongodb:
image: mongo:6.0
environment:
MONGO_INITDB_ROOT_USERNAME: cas
MONGO_INITDB_ROOT_PASSWORD: cas
MONGO_INITDB_DATABASE: admin
volumes:
- ./sbdi/data/mongo-init.sh:/docker-entrypoint-initdb.d/mongo-init.sh:z
- db_data_mongo_cas:/data/db
ports:
- 27017:27017
cas:
depends_on:
- mysqldb
- mongodb
image: sbdi/cas-dev
build:
context: .
ports:
- 9000:9000
volumes:
- ./sbdi/data/config/application.yml:/data/cas/config/application.yml
- ./sbdi/data/config/pwe.properties:/data/cas/config/pwe.properties
- ./sbdi/data/config/log4j2.xml:/data/cas/config/log4j2.xml
volumes:
db_data_mysql_cas:
db_data_mongo_cas:
#db_data_cas_empty:
#db_data_mongo_cas_empty: