forked from VolunChain/VolunChain-Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (36 loc) · 912 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (36 loc) · 912 Bytes
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
services:
db:
image: postgres:15
container_name: volunchain_db
environment:
POSTGRES_USER: volunchain
POSTGRES_PASSWORD: volunchain123
POSTGRES_DB: volunchain
ports:
- "5434:5432" # O usa "5432:5432" si necesitas que coincida localmente
volumes:
- db_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U volunchain"]
interval: 5s
retries: 5
timeout: 5s
redis:
image: redis:latest
container_name: volunchain_redis
ports:
- "6379:6379"
app:
build: .
container_name: volunchain_app
environment:
DATABASE_URL: postgres://volunchain:volunchain123@db:5432/volunchain
REDIS_URL: redis://redis:6379
command: sh -c "./entrypoint.sh"
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
volumes:
db_data: