rallly/docker-compose.yml
2022-10-11 09:31:58 +00:00

33 lines
642 B
YAML

version: "3.9"
services:
rallly_db:
image: postgres:14.2
restart: always
volumes:
- db-data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=db
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
rallly:
build:
context: .
restart: always
depends_on:
rallly_db:
condition: service_healthy
ports:
- 3000:3000
environment:
- DATABASE_URL=postgres://postgres:postgres@rallly_db:5432/db
env_file:
- .env
volumes:
db-data:
driver: local