-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (56 loc) · 1.57 KB
/
docker-compose.yml
File metadata and controls
61 lines (56 loc) · 1.57 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
49
50
51
52
53
54
55
56
57
58
59
60
61
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
args:
- ENV=production
env_file:
- .envs/local/backend.production.env
image: ${DOCKER_IMAGE_BACKEND:-simboard-backend}
restart: always
environment:
ENV: production
ENVIRONMENT: production
PORT: "8000"
STACK_NAME: simboard
DOMAIN: ${DOMAIN:-localhost}
FRONTEND_ORIGIN: ${FRONTEND_ORIGIN:-https://localhost:5173}
FRONTEND_AUTH_REDIRECT_URL: ${FRONTEND_AUTH_REDIRECT_URL:-https://localhost:5173/auth/callback}
GITHUB_REDIRECT_URL: ${GITHUB_REDIRECT_URL:-https://localhost/api/v1/auth/github/callback}
COOKIE_NAME: simboard_auth
COOKIE_SECURE: "true"
COOKIE_HTTPONLY: "true"
COOKIE_SAMESITE: lax
COOKIE_MAX_AGE: "3600"
# Required in all environments.
# In production (NERSC Spin), this is injected by the platform.
# For local parity, provide via .env or shell.
DATABASE_URL: ${DATABASE_URL:?DATABASE_URL must be set}
expose:
- "8000"
volumes: []
networks:
- default
healthcheck:
test: ["CMD", "wget", "-q", "-O", "-", "https://localhost:8000/api/v1/health"]
interval: 15s
timeout: 5s
retries: 3
start_period: 10s
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
- NODE_ENV=production
image: ${DOCKER_IMAGE_FRONTEND:-simboard-frontend}
restart: always
ports:
- "8080:80"
expose:
- "80"
depends_on:
- backend
networks:
- default