-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (52 loc) · 1.16 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
version: "3.8"
services:
mongodb:
image: "mongo:4.4.3-bionic"
container_name: mongodb
environment:
- PUID=1000
- PGID=1000
volumes:
- ${REPO_PATH}/storage/db:/data/db
ports:
- 27017:27017
restart: unless-stopped
api:
build:
context: ${REPO_PATH}/backend/
dockerfile: Dockerfile.api
environment:
- DB_STRING=mongodb://mongodb:27017/
ports:
- 8000:80
topo_scrapper_snmp:
build:
context: ${REPO_PATH}/backend/
dockerfile: Dockerfile.toposcrapper
env_file:
- ${REPO_PATH}/.snmp
- ${REPO_PATH}/.env
environment:
- DB_STRING=mongodb://mongodb:27017/
stats_crawler_snmp:
build:
context: ${REPO_PATH}/backend/
dockerfile: Dockerfile.statscrapper
env_file:
- ${REPO_PATH}/.snmp
environment:
- DB_STRING=mongodb://mongodb:27017/
# apache:
# image: "httpd:2.4"
# volumes:
# - ${REPO_PATH}/frontend/public-html/:/usr/local/apache2/htdocs/
# ports:
# - 8080:80
frontend:
build:
context: ${REPO_PATH}/frontend/
dockerfile: Dockerfile
args:
apipath: "http://127.0.0.1:8000"
ports:
- 8080:80