Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ services:
- "5400:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
networks:
node-network:
ipv4_address: 172.30.0.10

pgadmin:
image: dpage/pgadmin4
Expand All @@ -29,6 +27,9 @@ services:
volumes:
- pgadmin-data:/var/lib/pgadmin
restart: always
networks:
node-network:
ipv4_address: 172.30.0.12

node-api:
build:
Expand All @@ -43,6 +44,9 @@ services:
- "host.docker.internal:host-gateway"
depends_on:
- db
networks:
node-network:
ipv4_address: 172.30.0.11

prometheus:
image: prom/prometheus
Expand All @@ -61,6 +65,13 @@ services:
volumes:
- grafana-storage:/var/lib/grafana

networks:
node-network:
driver: bridge
ipam:
config:
- subnet: 172.30.0.0/16

volumes:
postgres-data:
pgadmin-data:
Expand Down
Loading