Skip to content

Commit

Permalink
Added docker network
Browse files Browse the repository at this point in the history
  • Loading branch information
DAQEM committed Jan 10, 2024
1 parent b96d874 commit e535d9b
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ services:
- ORIGIN=http://localhost:80
ports:
- "80:3000"
networks:
- netmon-network

netmon-admin-web-app:
build: Services/AdminWebApp
Expand All @@ -19,6 +21,8 @@ services:
- ORIGIN=http://localhost:81
ports:
- "81:3000"
networks:
- netmon-network

netmon-api-gateway:
build: Services/APIGateway
Expand All @@ -28,6 +32,8 @@ services:
- ASPNETCORE_URLS=http://+:80
ports:
- "5000:80"
networks:
- netmon-network

netmon-account-service:
build: Services/AccountService
Expand All @@ -37,6 +43,8 @@ services:
- ASPNETCORE_URLS=http://+:80
ports:
- "5001:80"
networks:
- netmon-network

netmon-device-manager-service:
build:
Expand All @@ -51,6 +59,8 @@ services:
depends_on:
- netmon-mongo
- netmon-mysql
networks:
- netmon-network

netmon-snmp-polling-service:
build:
Expand All @@ -64,13 +74,17 @@ services:
- "5003:80"
depends_on:
- netmon-mysql
networks:
- netmon-network

netmon-snmp-test-agent:
build: Tests/SNMPTestAgent
container_name: netmon-snmp-test-agent
hostname: snmpd-test
ports:
- "161:161/udp"
networks:
- netmon-network

netmon-mongo:
image: mongo
Expand All @@ -80,6 +94,8 @@ services:
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: mongopwd
networks:
- netmon-network

netmon-mongo-web-viewer:
image: mongo-express
Expand All @@ -92,6 +108,8 @@ services:
ME_CONFIG_MONGODB_URL: mongodb://root:mongopwd@192.168.178.8:27017/
depends_on:
- netmon-mongo
networks:
- netmon-network

netmon-mysql:
image: mysql
Expand All @@ -103,4 +121,10 @@ services:
MYSQL_ROOT_PASSWORD: pass
MYSQL_DATABASE: devices
MYSQL_USER: user
MYSQL_PASSWORD: pass
MYSQL_PASSWORD: pass
networks:
- netmon-network

networks:
netmon-network:
driver: bridge

0 comments on commit e535d9b

Please sign in to comment.