-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (44 loc) · 1.1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (44 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: "3.9"
services:
postgres:
image: postgres:18
restart: unless-stopped
environment:
POSTGRES_USER: core
POSTGRES_PASSWORD: core
POSTGRES_DB: core
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
core:
build: .
restart: unless-stopped
depends_on:
- postgres
environment:
PORT: ${PORT:-8080}
ENV: ${ENV:-development}
LOG_LEVEL: ${LOG_LEVEL:-debug}
DATABASE_URL: ${DATABASE_URL:-postgresql://core:core@postgres:5432/core?sslmode=disable}
AUTH_JWT_SECRET: ${AUTH_JWT_SECRET:-supersecretkey}
CORS_ALLOWED_ORIGINS: ""
ports:
- "8080:8080"
core-web:
build:
context: ../core-web
args:
PUBLIC_SUPABASE_URL: ${PUBLIC_SUPABASE_URL:-}
PUBLIC_SUPABASE_ANON_KEY: ${PUBLIC_SUPABASE_ANON_KEY:-}
PUBLIC_API_URL: ${PUBLIC_API_URL:-http://core:8080}
restart: unless-stopped
depends_on:
- core
environment:
PORT: ${WEB_PORT:-3000}
ORIGIN: ${ORIGIN:-http://localhost:3000}
ports:
- "3000:3000"
volumes:
pgdata: