generated from pure_sagacity/turborepo-starter-project
49 lines
973 B
YAML
49 lines
973 B
YAML
services:
|
|
client:
|
|
build:
|
|
context: .
|
|
dockerfile: apps/client/Dockerfile
|
|
restart: unless-stopped
|
|
ports:
|
|
- 3000:3000
|
|
environment:
|
|
- NEXT_PUBLIC_API_URL="http://server:3000"
|
|
depends_on:
|
|
- server
|
|
server:
|
|
build:
|
|
context: .
|
|
dockerfile: apps/server/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:
|