finished client + added docker compose builds for client and server
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -1,4 +1,28 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user