-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
53 lines (51 loc) · 1.29 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
version: '3'
networks:
scraper-network:
services:
api:
build:
context: ./services/api
args:
- COMPONENT_PARAM_HOST=${SERVICE_API_HOST}
- COMPONENT_PARAM_LSTN=${SERVICE_API_LSTN}
- COMPONENT_PARAM_PORT=${SERVICE_API_PORT}
- COMPONENT_PARAM_PORTS=${SERVICE_API_PORTS}
image: ${}:${PROJECT_VERSION}
links:
- tor
- mongo
networks:
- scraper-network
ports:
- ${SERVICE_API_PORT}:${SERVICE_API_PORT}
- ${SERVICE_API_PORTS}:${SERVICE_API_PORTS}
environment:
SERVICE_TOR_HOST: ${SERVICE_TOR_HOST}
SERVICE_TOR_SOCKS_PORT: ${SERVICE_TOR_SOCKS_PORT}
tor:
build:
context: ./services/tor
image: ${SERVICE_TOR_KEY}:${PROJECT_VERSION}
networks:
- scraper-network
mongo:
build:
context: ./dbs/mongo
image: ${DB_MONGO_KEY}:${PROJECT_VERSION}
environment:
MONGO_INITDB_ROOT_USERNAME: ${DB_MONGO_USER}
MONGO_INITDB_ROOT_PASSWORD: ${DB_MONGO_PASS}
networks:
- scraper-network
mongo-express:
image: mongo-express
links:
- mongo
restart: always
ports:
- 8180:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: ${DB_MONGO_USER}
ME_CONFIG_MONGODB_ADMINPASSWORD: ${DB_MONGO_PASS}
networks:
- scraper-network