-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
34 lines (34 loc) · 1.03 KB
/
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
services:
redis:
image: redis:alpine
ports:
- '5291:6379'
# save 1 or more writes every 20 seconds to disk, in case of a crash
command: redis-server --save 20 1 --loglevel warning --requirepass mysecret
volumes:
- './.local/redis:/data'
serverless-redis-http:
ports:
- '5391:80'
image: hiett/serverless-redis-http:latest
environment:
SRH_MODE: env
SRH_TOKEN: mytoken
SRH_CONNECTION_STRING: 'redis://:mysecret@redis:5291'
postgres:
image: postgres:16-alpine
ports:
- 5491:5432 # postgresql://myuser:[email protected]:5491/substracker?search_path=public&connect_timeout=10
volumes:
- './.local/postgres:/var/lib/postgresql/data'
environment:
- POSTGRES_USER=myuser
- POSTGRES_PASSWORD=mysecret
- POSTGRES_DB=substracker
pgadmin:
image: dpage/pgadmin4
ports:
- 5591:80 # http://localhost:5591
environment:
- [email protected] # login for the UI
- PGADMIN_DEFAULT_PASSWORD=mysecret