-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathdocker-compose.yml
67 lines (64 loc) · 1.49 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
services:
mysqldb:
image: mysql:8.0
container_name: mysqldb
command: --default-authentication-plugin=mysql_native_password
restart: unless-stopped
volumes:
- ./models/init.sql:/docker-entrypoint-initdb.d/0_init.sql
ports:
- ${DB_PORT}:${DB_PORT}
expose:
- ${DB_PORT}
environment:
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASS}
MYSQL_ROOT_PASSWORD: ${DB_PASS}
SERVICE_TAGS: prod
SERVICE_NAME: mysqldb
networks:
- internalnet
mongodb:
image: mongo
container_name: mongodb
ports:
- 27018:27017
expose:
- 27018
environment:
- MONGO_INITDB_ROOT_USERNAME=vuln_nodejs_app
- MONGO_INITDB_ROOT_PASSWORD=supersecret
networks:
- internalnet
nodeapp:
container_name: vuln_nodejs_app
build: .
image: payatu/vuln_nodejs_app
volumes:
- .:/code
ports:
- ${HOST_PORT}:${HOST_PORT}
expose:
- ${HOST_PORT}
environment:
HOST_PORT: ${HOST_PORT}
DB_NAME: ${DB_NAME}
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASS}
DB_HOST: mysqldb
DB_PORT: ${DB_PORT}
SERVICE_TAGS: prod
SERVICE_NAME: nodeappservice
JWT_SECRET: ${JWT_SECRET}
MONGODB_SERVER: mongodb
MONGODB_ADMINUSERNAME: vuln_nodejs_app
MONGODB_ADMINPASSWORD: supersecret
depends_on:
- mysqldb
- mongodb
networks:
- internalnet
networks:
internalnet:
driver: bridge