-
-
Notifications
You must be signed in to change notification settings - Fork 106
/
Copy pathdocker-compose.yml
45 lines (41 loc) · 877 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: '3'
services:
db:
image: postgres:16-alpine
container_name: honghongme-postgres
ports:
- 5432:5432
environment:
- 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
container_name: honghongme-redis-http
ports:
- '8079:80'
environment:
SRH_MODE: env
SRH_TOKEN: honghongme
SRH_CONNECTION_STRING: 'redis://redis:6379'
networks:
- honghongme-network
volumes:
db:
redis:
networks:
honghongme-network:
driver: bridge