Skip to content

Commit

Permalink
chore: add volumes and networks for PostgreSQL and Redis services
Browse files Browse the repository at this point in the history
  • Loading branch information
tszhong0411 committed Feb 10, 2025
1 parent 6ad49a0 commit 7a650f7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,19 @@ services:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=honghongme
volumes:
- db:/var/lib/postgresql/data
networks:
- honghongme-network
redis:
image: redis
container_name: honghongme-redis
ports:
- '6379:6379'
volumes:
- redis:/data
networks:
- honghongme-network

serverless-redis-http:
image: hiett/serverless-redis-http:latest
Expand All @@ -25,3 +33,13 @@ services:
SRH_MODE: env
SRH_TOKEN: honghongme
SRH_CONNECTION_STRING: 'redis://redis:6379'
networks:
- honghongme-network

volumes:
db:
redis:

networks:
honghongme-network:
driver: bridge

0 comments on commit 7a650f7

Please sign in to comment.