mirror of
https://github.com/LukeHagar/pypistats.dev.git
synced 2025-12-06 04:21:09 +00:00
Add services to dokploy-network in docker-compose.yml for improved service communication
This commit is contained in:
@@ -7,6 +7,8 @@ services:
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
networks:
|
||||
- dokploy-network
|
||||
healthcheck:
|
||||
test: [ "CMD-SHELL", "pg_isready -U pypistats -d pypistats" ]
|
||||
interval: 5s
|
||||
@@ -18,6 +20,8 @@ services:
|
||||
environment:
|
||||
REDIS_PASSWORD: ${REDIS_PASSWORD}
|
||||
command: [ "redis-server", "--requirepass", "${REDIS_PASSWORD}" ]
|
||||
networks:
|
||||
- dokploy-network
|
||||
healthcheck:
|
||||
test: [ "CMD-SHELL", "redis-cli -a $REDIS_PASSWORD ping" ]
|
||||
interval: 5s
|
||||
@@ -40,8 +44,10 @@ services:
|
||||
SERVICE_PASSWORD_REDIS: ${REDIS_PASSWORD}
|
||||
DATABASE_URL: postgresql://pypistats:${POSTGRES_PASSWORD}@db:5432/pypistats?schema=public
|
||||
REDIS_URL: redis://:${REDIS_PASSWORD}@redis:6379
|
||||
ports:
|
||||
- 2567:2567
|
||||
expose:
|
||||
- 2567
|
||||
networks:
|
||||
- dokploy-network
|
||||
command: [ "sh", "-c", "bun run prisma migrate deploy && bun run build/index.js" ]
|
||||
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user