Files
turborepo-starter-project/docker-compose.yml
T

49 lines
973 B
YAML

services:
client:
build:
context: ./apps/client
dockerfile: Dockerfile
restart: unless-stopped
ports:
- 3000:3000
environment:
- NEXT_PUBLIC_API_URL="http://server:3000"
depends_on:
- server
server:
build:
context: ./apps/server
dockerfile: Dockerfile
restart: unless-stopped
ports:
- 3000
environment:
- BETTER_AUTH_URL="http://localhost:3000"
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/postgres
depends_on:
- postgres
- redis
postgres:
image: postgres:13
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
redis:
image: redis:7
restart: always
ports:
- "6379:6379"
volumes:
- redis-data:/data
volumes:
postgres-data:
redis-data: