omnichannel-deploy/docker-compose.yml

39 lines
730 B
YAML

services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "4000:3000"
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "4001:3001"
env_file:
- .env.development
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:16-alpine
restart: always
env_file:
- .env.development
ports:
- "5434:5432"
volumes:
- pgdata:/var/lib/postgresql/data
- ./database/init:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER} -d ${DB_NAME}"]
interval: 5s
timeout: 5s
retries: 5
volumes:
pgdata: