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.
53 lines
1.1 KiB
53 lines
1.1 KiB
version: '3' |
|
services: |
|
nginx: |
|
container_name: nginx |
|
restart: always |
|
build: ./nginx |
|
image: custom/nginx |
|
ports: |
|
- 8080:8080 |
|
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 |
|
# below config only needed if using internal CI/CD from labbs |
|
# networks: |
|
# default: |
|
# ipam: |
|
# driver: default |
|
# config: |
|
# - subnet: 192.168.5.0/24
|
|
|