|
|
|
@ -7,6 +7,8 @@ services: |
|
|
|
image: custom/nginx |
|
|
|
image: custom/nginx |
|
|
|
ports: |
|
|
|
ports: |
|
|
|
- 8080:8080 |
|
|
|
- 8080:8080 |
|
|
|
|
|
|
|
networks: |
|
|
|
|
|
|
|
- network_1 |
|
|
|
app: |
|
|
|
app: |
|
|
|
container_name: app |
|
|
|
container_name: app |
|
|
|
depends_on: |
|
|
|
depends_on: |
|
|
|
@ -14,13 +16,9 @@ services: |
|
|
|
restart: always |
|
|
|
restart: always |
|
|
|
build: ./node |
|
|
|
build: ./node |
|
|
|
image: custom/node |
|
|
|
image: custom/node |
|
|
|
# environment: |
|
|
|
networks: |
|
|
|
# mongousr: myTester |
|
|
|
- network_1 |
|
|
|
# mongopwd: test |
|
|
|
- network_2 |
|
|
|
# ports: |
|
|
|
|
|
|
|
# - '3001:3001' |
|
|
|
|
|
|
|
links: |
|
|
|
|
|
|
|
- mongo |
|
|
|
|
|
|
|
mongo: |
|
|
|
mongo: |
|
|
|
container_name: mongo |
|
|
|
container_name: mongo |
|
|
|
build: ./mongo |
|
|
|
build: ./mongo |
|
|
|
@ -28,8 +26,8 @@ services: |
|
|
|
environment: |
|
|
|
environment: |
|
|
|
MONGO_INITDB_ROOT_USERNAME: root |
|
|
|
MONGO_INITDB_ROOT_USERNAME: root |
|
|
|
MONGO_INITDB_ROOT_PASSWORD: ruth |
|
|
|
MONGO_INITDB_ROOT_PASSWORD: ruth |
|
|
|
# mongousr: myTester |
|
|
|
networks: |
|
|
|
# mongopwd: test |
|
|
|
- network_2 |
|
|
|
ports: |
|
|
|
ports: |
|
|
|
- 27017:27017 |
|
|
|
- 27017:27017 |
|
|
|
prometheus: |
|
|
|
prometheus: |
|
|
|
@ -37,17 +35,24 @@ services: |
|
|
|
image: prom/prometheus:latest |
|
|
|
image: prom/prometheus:latest |
|
|
|
volumes: |
|
|
|
volumes: |
|
|
|
- ./prometheus.yml:/etc/prometheus/prometheus.yml |
|
|
|
- ./prometheus.yml:/etc/prometheus/prometheus.yml |
|
|
|
|
|
|
|
networks: |
|
|
|
|
|
|
|
- network_2 |
|
|
|
ports: |
|
|
|
ports: |
|
|
|
- 9090:9090 |
|
|
|
- 9090:9090 |
|
|
|
grafana: |
|
|
|
grafana: |
|
|
|
container_name: grafana |
|
|
|
container_name: grafana |
|
|
|
image: grafana/grafana |
|
|
|
image: grafana/grafana |
|
|
|
|
|
|
|
networks: |
|
|
|
|
|
|
|
- network_2 |
|
|
|
ports: |
|
|
|
ports: |
|
|
|
- 3000:3000 |
|
|
|
- 3000:3000 |
|
|
|
# below config only needed if using internal CI/CD from labbs |
|
|
|
networks: |
|
|
|
# networks: |
|
|
|
network_1: |
|
|
|
# default: |
|
|
|
driver: bridge |
|
|
|
# ipam: |
|
|
|
network_2: |
|
|
|
# driver: default |
|
|
|
driver: bridge |
|
|
|
# config: |
|
|
|
default: |
|
|
|
# - subnet: 192.168.5.0/24 |
|
|
|
ipam: |
|
|
|
|
|
|
|
driver: default |
|
|
|
|
|
|
|
config: |
|
|
|
|
|
|
|
- subnet: 192.168.5.0/24 |
|
|
|
|