Uniformize docker-compose files

This commit is contained in:
TwinProduction 2021-09-10 20:03:51 -04:00
parent dafd547656
commit effad21c64
4 changed files with 10 additions and 12 deletions

View File

@ -1,12 +1,11 @@
version: '3.7' version: "3.9"
services: services:
gatus: gatus:
container_name: gatus container_name: gatus
image: twinproduction/gatus image: twinproduction/gatus
restart: always restart: always
ports: ports:
- 8080:8080 - "8080:8080"
volumes: volumes:
- ./config.yaml:/config/config.yaml - ./config.yaml:/config/config.yaml
networks: networks:
@ -18,7 +17,7 @@ services:
restart: always restart: always
command: --config.file=/etc/prometheus/prometheus.yml command: --config.file=/etc/prometheus/prometheus.yml
ports: ports:
- 9090:9090 - "9090:9090"
volumes: volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml - ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
networks: networks:
@ -31,7 +30,7 @@ services:
environment: environment:
GF_SECURITY_ADMIN_PASSWORD: secret GF_SECURITY_ADMIN_PASSWORD: secret
ports: ports:
- 3000:3000 - "3000:3000"
volumes: volumes:
- ./grafana/grafana.ini/:/etc/grafana/grafana.ini:ro - ./grafana/grafana.ini/:/etc/grafana/grafana.ini:ro
- ./grafana/provisioning/:/etc/grafana/provisioning/:ro - ./grafana/provisioning/:/etc/grafana/provisioning/:ro

View File

@ -1,11 +1,10 @@
version: "3.8" version: "3.9"
services: services:
gatus: gatus:
container_name: gatus container_name: gatus
image: twinproduction/gatus:latest image: twinproduction/gatus:latest
ports: ports:
- 8080:8080 - "8080:8080"
volumes: volumes:
- ./config.yaml:/config/config.yaml - ./config.yaml:/config/config.yaml
networks: networks:
@ -15,7 +14,7 @@ services:
container_name: mattermost container_name: mattermost
image: mattermost/mattermost-preview:5.26.0 image: mattermost/mattermost-preview:5.26.0
ports: ports:
- 8065:8065 - "8065:8065"
networks: networks:
- default - default

View File

@ -15,7 +15,7 @@ services:
image: twinproduction/gatus:latest image: twinproduction/gatus:latest
restart: always restart: always
ports: ports:
- 8080:8080 - "8080:8080"
volumes: volumes:
- ./config.yaml:/config/config.yaml - ./config.yaml:/config/config.yaml
networks: networks:

View File

@ -1,9 +1,9 @@
version: "3.8" version: "3.9"
services: services:
gatus: gatus:
image: twinproduction/gatus:latest image: twinproduction/gatus:latest
ports: ports:
- 8080:8080 - "8080:8080"
volumes: volumes:
- ./config.yaml:/config/config.yaml - ./config.yaml:/config/config.yaml
- ./data:/data/ - ./data:/data/