-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (48 loc) · 1.04 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
services:
web:
build:
context: .
dockerfile: Dockerfile
depends_on:
redis:
condition: service_started
db:
condition: service_healthy
volumes:
- .:/app
- passari_data:/data
ports:
- "127.0.0.1:5000:5000"
environment:
DATABASE_URL: postgresql://passari:passari@db/passari
REDIS_URL: redis://redis:6379/0
env_file:
- .env.defaults
- .env
db:
image: postgres:15
environment:
POSTGRES_USER: passari
POSTGRES_PASSWORD: passari
POSTGRES_DB: passari
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: "pg_isready -U passari"
interval: 1s
retries: 15
redis:
image: redis:7
volumes:
- redis_data:/data
# Redis Commander (Web Interface for Redis)
redis-commander:
image: rediscommander/redis-commander:latest
environment:
REDIS_HOSTS: "local:redis:6379"
ports:
- "127.0.0.1:8081:8081"
volumes:
passari_data:
postgres_data:
redis_data: