forked from snoopysecurity/dvws-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
25 lines (25 loc) · 752 Bytes
/
docker-compose.yml
File metadata and controls
25 lines (25 loc) · 752 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
version: '3'
services:
dvws-mongo:
image: mongo:4.0.4
dvws-mysql:
image: mysql:8
environment:
MYSQL_ROOT_PASSWORD: mysecretpassword
MYSQL_DATABASE: dvws_sqldb
web:
image: snoopysecurity/dvws-node:latest
build: .
ports:
- "80:80"
- "4000:4000"
- "9090:9090"
command: sh -c "/wait && node startup_script.js && npm start"
environment:
WAIT_HOSTS: dvws-mysql:3306, dvws-mongo:27017
WAIT_HOSTS_TIMEOUT: 160
SQL_LOCAL_CONN_URL: dvws-mysql
MONGO_LOCAL_CONN_URL: mongodb://dvws-mongo:27017/node-dvws
depends_on:
- dvws-mongo
- dvws-mysql