forked from OWASP/SecurityShepherd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (70 loc) · 1.75 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
version: '2'
services:
db:
image: ${IMAGE_MARIADB}
container_name: ${CONTAINER_MARIADB}
volumes:
- data:/var/lib/mysql
env_file:
- .env
build:
context: docker/mariadb
args:
DB_VERSION: ${DB_VERSION}
DB_BIND_ADDRESS: ${DB_BIND_ADDRESS}
CONTAINER_TOMCAT: ${CONTAINER_TOMCAT}
DOCKER_NETWORK_NAME: ${DOCKER_NETWORK_NAME}
environment:
- MYSQL_ROOT_PASSWORD=${DB_PASS}
ports:
- "${DB_SERVER_MAPPED_HOST}:${DB_PORT_MAPPED_HOST}:3306"
mongo:
image: ${IMAGE_MONGO}
container_name: ${CONTAINER_MONGO}
volumes:
- mongodata:/data/db
- mongoconfig:/data/configdb
env_file:
- .env
build:
context: ./docker/mongo
args:
MONGODB_VERSION: ${MONGODB_VERSION}
MONGO_BIND_ADDRESS: ${MONGO_BIND_ADDRESS}
ports:
- "${MONGO_SERVER_MAPPED_HOST}:${MONGO_PORT_MAPPED_HOST}:27017"
web:
image: ${IMAGE_TOMCAT}
container_name: ${CONTAINER_TOMCAT}
volumes:
- conf:/usr/local/tomcat/conf
- logs:/usr/local/tomcat/logs
env_file:
- .env
build:
context: .
args:
TOMCAT_DOCKER_VERSION: ${TOMCAT_DOCKER_VERSION}
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASS}
MARIADB_URI: jdbc:mariadb://${CONTAINER_MARIADB}:3306
MONGO_HOST: ${CONTAINER_MONGO}
MONGO_PORT: 27017
MONGO_CONN_TIMEOUT: 1000
MONGO_SOCK_TIMEOUT: 0
MONGO_SVR_TIMEOUT: 30000
TLS_KEYSTORE_FILE: ${TLS_KEYSTORE_FILE}
TLS_KEYSTORE_PASS: ${TLS_KEYSTORE_PASS}
ALIAS: ${ALIAS}
HTTPS_PORT: ${HTTPS_PORT}
ports:
- $HTTP_PORT:8080
- $HTTPS_PORT:8443
depends_on:
- db
volumes:
data:
conf:
logs:
mongodata:
mongoconfig: