-
-
Notifications
You must be signed in to change notification settings - Fork 186
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (46 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
51 lines (46 loc) · 1.01 KB
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
46
47
48
49
50
51
name: analog
services:
db:
container_name: analog_db
image: bitnami/postgresql:18
environment:
POSTGRESQL_POSTGRES_PASSWORD: postgres
POSTGRESQL_DATABASE: analog_db
ports:
- 5432:5432
volumes:
- postgres_data:/bitnami/postgresql
networks:
- analog_network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d $${POSTGRESQL_DATABASE}"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
redis:
container_name: redis
image: redis:latest
ports:
- 6379:6379
networks:
- analog_network
upstash-redis:
container_name: upstash-redis
image: hiett/serverless-redis-http:latest
ports:
- "8079:80"
environment:
SRH_MODE: env
SRH_TOKEN: upstash-local-token
SRH_CONNECTION_STRING: "redis://redis:6379"
env_file:
- .env
networks:
- analog_network
restart: unless-stopped
volumes:
postgres_data:
networks:
analog_network:
driver: bridge