-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
76 lines (72 loc) · 2.22 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
71
72
73
74
75
76
services:
mongodb:
build:
context: mongo/
container_name: mongo
restart: always
expose:
- "27017"
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: admin
volumes:
- ${HOME}/mongo/data/:/data/db/
- ${HOME}/mongo/dump/:/dump/
networks:
- mongodb
command: ["--auth", "--storageEngine", "wiredTiger"]
spider:
build:
context: spider/
container_name: spider
restart: always
depends_on:
- mongodb
expose:
- "50051"
networks:
- spider
- mongodb
links:
- mongodb
working_dir: /spider/src/
command: ["python3", "server.py"]
www:
build:
context: www/
container_name: www
restart: always
depends_on:
- spider
networks:
- spider
- mongodb
- www
links:
- spider
- mongodb
expose:
- "8000"
command: ["uwsgi", "--ini-paste", "uwsgi.ini"]
nginx:
build:
context: nginx/
container_name: nginx
restart: always
depends_on:
- www
networks:
- www
links:
- www
ports:
- "80:80"
- "443:443"
- "8080:8080"
networks:
spider:
driver: bridge
mongodb:
driver: bridge
www:
driver: bridge