-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
45 lines (39 loc) · 958 Bytes
/
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
version: '3'
services:
mongodb:
image: mongo
container_name: mongodb
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
- external_data:/data/ext_db
mongo-seed:
image: mongo
volumes:
- ./data:/data/external_data # mount local ./data into container /data/external_data
depends_on:
- mongodb
command: sh -c "mongoimport --host mongodb --db anime_recommender_db --collection gogaido_beta --file /data/external_data/animelist.gogaido_beta.json --jsonArray"
nginx:
image: nginx
container_name: nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
- recommender_backend
recommender_backend:
build:
context: .
dockerfile: Dockerfile
container_name: recommender_backend
ports:
- "8000:8000"
depends_on:
- mongodb
volumes:
mongodb_data:
external_data: