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