Files
ck_qr_nextjs_node_redis_pos…/docker-compose.yaml
T

51 lines
873 B
YAML

version: '3.8'
services:
frontend:
build:
context: ./client
dockerfile: Dockerfile
expose:
- "4000"
environment:
- PORT=4000
depends_on:
- backend
backend:
build:
context: ./api
dockerfile: Dockerfile
expose:
- "4001"
environment:
- PORT=4001
- PGHOST=postgres
- PGPORT=5432
- PGUSER=postgres
- PGPASSWORD=postgres
- PGDATABASE=ckqr
- REDIS_HOST=redis
- REDIS_PORT=6379
depends_on:
- postgres
- redis
postgres:
image: postgres:15-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=ckqr
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:7-alpine
volumes:
- redis_data:/data
volumes:
postgres_data:
redis_data: