You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
885 B
45 lines
885 B
version: '3' |
|
services: |
|
app: |
|
container_name: app |
|
depends_on: |
|
- mongo |
|
restart: always |
|
build: ./node |
|
image: custom/node |
|
environment: |
|
mongousr: myTester |
|
mongopwd: test |
|
ports: |
|
- '3001:3001' |
|
links: |
|
- mongo |
|
mongo: |
|
container_name: mongo |
|
build: ./mongo |
|
image: custom/mongo |
|
environment: |
|
MONGO_INITDB_ROOT_USERNAME: root |
|
MONGO_INITDB_ROOT_PASSWORD: ruth |
|
mongousr: myTester |
|
mongopwd: test |
|
ports: |
|
- 27017:27017 |
|
prometheus: |
|
container_name: prometheus |
|
image: prom/prometheus:latest |
|
volumes: |
|
- ./prometheus.yml:/etc/prometheus/prometheus.yml |
|
ports: |
|
- 9090:9090 |
|
grafana: |
|
container_name: grafana |
|
image: grafana/grafana |
|
ports: |
|
- 3000:3000 |
|
networks: |
|
default: |
|
ipam: |
|
driver: default |
|
config: |
|
- subnet: 192.168.5.0/24
|
|
|