Skip to content

Commit

Permalink
fix map docker volume and ports
Browse files Browse the repository at this point in the history
  • Loading branch information
aradwann committed Jan 21, 2024
1 parent e5f9715 commit 0d3a87d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ services:
- POSTGRES_PASSWORD=secret
ports:
- "5432:5432"
volumes:
- data-volume:/var/lib/postgresql/data

pgadmin4:
image: dpage/pgadmin4
Expand All @@ -27,8 +29,10 @@ services:
dockerfile: Dockerfile
ports:
- "8080:8080"
- "9090:9090"
environment:
- DB_SOURCE=postgresql://root:secret@postgres:5432/eenergy?sslmode=disable
- REDIS_ADDRESS=redis:6379
depends_on:
- postgres
- redis
Expand All @@ -41,3 +45,6 @@ services:
"/app/start.sh"
]
command: [ "/app/main" ]

volumes:
data-volume:

0 comments on commit 0d3a87d

Please sign in to comment.