-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
75 lines (69 loc) · 1.36 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
version: '3.5'
services:
front:
restart: unless-stopped
build:
context: ./front
dockerfile: Dockerfile
container_name: parser-front
image: parser-front
volumes:
- ./front/:/app/
networks:
- parser
env_file: .env
parser:
restart: unless-stopped
build:
context: ./parser
dockerfile: Dockerfile
container_name: parser-scrapper
image: parser-scrapper
networks:
- parser
env_file: .env
shm_size: 2gb
depends_on:
- mongo
api:
restart: unless-stopped
build:
context: ./api
dockerfile: Dockerfile
container_name: parser-api
image: parser-api
networks:
- parser
env_file: .env
depends_on:
- mongo
mongo:
image: mongo:4.4
restart: unless-stopped
container_name: parser-mongodb
ports:
- 27017:27017
volumes:
- ./data/mongodb:/data/db
env_file: .env
environment:
MONGO_INITDB_ROOT_USERNAME: $MONGO_USER
MONGO_INITDB_ROOT_PASSWORD: $MONGO_PASS
networks:
- parser
nginx:
image: nginx:1.17
container_name: parser-nginx
restart: unless-stopped
volumes:
- ./nginx/http.conf:/etc/nginx/nginx.conf
ports:
- 65005:80
depends_on:
- front
networks:
- parser
networks:
parser:
name: parser-network
driver: bridge