Skip to content

Commit

Permalink
Format docker-compose files and pin postgres version
Browse files Browse the repository at this point in the history
  • Loading branch information
zoltanbedi committed Sep 26, 2023
1 parent 466cbe6 commit 01895b4
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 30 deletions.
16 changes: 8 additions & 8 deletions devenv/default/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3"
version: '3'

services:
# Grafana
Expand All @@ -7,21 +7,21 @@ services:
build:
context: ./
args:
grafana_version: ${GRAFANA_VERSION:-9.2.5}
grafana_version: ${GRAFANA_VERSION:-10.1.2}
ports:
- 3000:3000/tcp
volumes:
- ../../dist:/grafana-zabbix
- ../dashboards:/devenv/dashboards
- ../grafana.ini:/etc/grafana/grafana.ini:ro
- "../datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml"
- "../dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml"
- '../datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml'
- '../dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml'

# Zabbix
zabbix-server:
image: zabbix/zabbix-server-pgsql:alpine-6.0-latest
ports:
- "10051:10051"
- '10051:10051'
depends_on:
- database
environment:
Expand All @@ -38,7 +38,7 @@ services:
zabbix-web:
image: zabbix/zabbix-web-apache-pgsql:alpine-6.0-latest
ports:
- "8188:8080"
- '8188:8080'
depends_on:
- database
- zabbix-server
Expand All @@ -52,9 +52,9 @@ services:
POSTGRES_DB: zabbix

database:
image: postgres
image: postgres:15
ports:
- "15432:5432"
- '15432:5432'
command: postgres -c 'max_connections=1000'
environment:
POSTGRES_USER: zabbix
Expand Down
12 changes: 6 additions & 6 deletions devenv/zabbix50/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
version: "3"
version: '3'

services:
# Zabbix
zabbix-server:
image: zabbix/zabbix-server-pgsql:alpine-5.0-latest
ports:
- "10051:10051"
- '10051:10051'
depends_on:
- database
environment:
Expand All @@ -18,8 +18,8 @@ services:
zabbix-web:
image: zabbix/zabbix-web-apache-pgsql:alpine-5.0-latest
ports:
- "8188:8080"
- "8189:8443"
- '8188:8080'
- '8189:8443'
# - "8188:80"
depends_on:
- database
Expand All @@ -37,9 +37,9 @@ services:
- ./ssl:/etc/ssl/apache2:ro

database:
image: postgres
image: postgres:14
ports:
- "15432:5432"
- '15432:5432'
environment:
POSTGRES_USER: zabbix
POSTGRES_PASSWORD: zabbix
Expand Down
18 changes: 9 additions & 9 deletions devenv/zabbix60/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
version: "3"
version: '3'

services:
# Grafana
grafana:
image: grafana/grafana:8.4.7
image: grafana/grafana:10.1.2
ports:
- "3001:3000"
- '3001:3000'
volumes:
- ../..:/grafana-zabbix
- ../dashboards:/devenv/dashboards
- ../grafana.ini:/etc/grafana/grafana.ini:ro
- "../datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml"
- "../dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml"
- '../datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml'
- '../dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml'

# Zabbix
zabbix-server:
image: zabbix/zabbix-server-pgsql:alpine-6.0-latest
ports:
- "10051:10051"
- '10051:10051'
depends_on:
- database
environment:
Expand All @@ -34,7 +34,7 @@ services:
zabbix-web:
image: zabbix/zabbix-web-apache-pgsql:alpine-6.0-latest
ports:
- "8188:8080"
- '8188:8080'
depends_on:
- database
- zabbix-server
Expand All @@ -48,9 +48,9 @@ services:
POSTGRES_DB: zabbix

database:
image: postgres
image: postgres:15
ports:
- "15432:5432"
- '15432:5432'
command: postgres -c 'max_connections=1000'
environment:
POSTGRES_USER: zabbix
Expand Down
14 changes: 7 additions & 7 deletions devenv/zabbix62/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
version: "3"
version: '3'

services:
# Grafana
grafana:
image: grafana/grafana:10.1.2
ports:
- "3001:3000"
- '3001:3000'
volumes:
- ../..:/grafana-zabbix
- ../dashboards:/devenv/dashboards
- ../grafana.ini:/etc/grafana/grafana.ini:ro
- "../datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml"
- "../dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml"
- '../datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml'
- '../dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml'

# Zabbix
zabbix-server:
image: zabbix/zabbix-server-pgsql:alpine-6.2-latest
ports:
- "10051:10051"
- '10051:10051'
depends_on:
- database
environment:
Expand All @@ -34,7 +34,7 @@ services:
zabbix-web:
image: zabbix/zabbix-web-apache-pgsql:alpine-6.2-latest
ports:
- "8188:8080"
- '8188:8080'
depends_on:
- database
- zabbix-server
Expand All @@ -50,7 +50,7 @@ services:
database:
image: postgres:15
ports:
- "15432:5432"
- '15432:5432'
command: postgres -c 'max_connections=1000'
environment:
POSTGRES_USER: zabbix
Expand Down

0 comments on commit 01895b4

Please sign in to comment.