mirror of
https://github.com/LukeHagar/pypistats.dev.git
synced 2025-12-06 12:47:48 +00:00
Update docker-compose.yml to specify port mappings for PostgreSQL, Redis, and the application service, ensuring proper access and configuration for each service.
This commit is contained in:
@@ -8,7 +8,7 @@ services:
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
ports:
|
||||
- 5432
|
||||
- 5432:5432
|
||||
healthcheck:
|
||||
test: [ "CMD-SHELL", "pg_isready -U pypistats -d pypistats" ]
|
||||
interval: 5s
|
||||
@@ -21,7 +21,7 @@ services:
|
||||
REDIS_PASSWORD: ${REDIS_PASSWORD}
|
||||
command: [ "redis-server", "--requirepass", "${REDIS_PASSWORD}" ]
|
||||
ports:
|
||||
- 6379
|
||||
- 6379:6379
|
||||
healthcheck:
|
||||
test: [ "CMD-SHELL", "redis-cli -a $REDIS_PASSWORD ping" ]
|
||||
interval: 5s
|
||||
@@ -45,7 +45,7 @@ services:
|
||||
DATABASE_URL: postgresql://pypistats:${POSTGRES_PASSWORD}@db:5432/pypistats?schema=public
|
||||
REDIS_URL: redis://:${REDIS_PASSWORD}@redis:6379
|
||||
ports:
|
||||
- 3000
|
||||
- 2965:2965
|
||||
command: [ "sh", "-c", "bun run prisma migrate deploy && bun run build/index.js" ]
|
||||
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user