-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
56 lines (52 loc) · 1.17 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
version: "3"
services:
client:
container_name: client
build:
context: ./frontend
dockerfile: Dockerfile
tty: true
ports:
- 3000:3000
volumes:
- ./frontend:/app
- /app/node_modules
networks:
- web
mongodb:
image: mongo
container_name: mongodb
restart: unless-stopped
command: mongod --auth
environment:
MONGO_INITDB_ROOT_USERNAME: "attackSeaman"
MONGO_INITDB_ROOT_PASSWORD: "cuccs1sgreat"
MONGO_INITDB_DATABASE: attackSeaman
MONGODB_DATA_DIR: /data/db
volumes:
- ./database/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
networks:
- web
mongo_seed:
container_name: mongo_seed
image: mongo
links:
- mongodb
networks:
- web
volumes:
- ./database:/database
command:
/bin/sh /database/import.sh
app:
container_name: app
image: yanhui22/attack-seaman:latest
ports:
- 6868:6868
- 4200:4200
restart: unless-stopped
networks:
- web # Networks to join (Services on the same network can communicate with each other using their name)
networks:
web:
driver: bridge