-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.prod.yml
67 lines (61 loc) · 2.3 KB
/
compose.prod.yml
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
62
63
64
65
66
67
services:
database-game-critique:
restart: unless-stopped
ports: !reset []
expose:
- "5432"
redis:
restart: unless-stopped
ports: !reset []
expose:
- "6379"
game-critique-api:
restart: unless-stopped
container_name: game-critique-api
pull_policy: build
image: game-critique-api:v0.0.17
build:
context: .
dockerfile: apps/api/Dockerfile
environment:
- PORT=${API_PORT:-3000}
- DATABASE_URL=${DATABASE_URL:-postgres://postgres:postgres@database-game-critique:5432/game-critique}
- REDIS_HOST=${REDIS_HOST:-localhost}
- REDIS_PORT=${REDIS_PORT:-6379}
- IGDB_AUTH0_BASE_URL=${IGDB_AUTH0_BASE_URL?:Missing IGDB_AUTH0_BASE_URL}
- IGDB_BASE_API_URL=${IGDB_BASE_API_URL?:Missing IGDB_BASE_API_URL}
- IGDB_CLIENT_ID=${IGDB_CLIENT_ID?:Missing IGDB_CLIENT_ID}
- IGDB_CLIENT_SECRET=${IGDB_CLIENT_SECRET?:Missing IGDB_CLIENT_SECRET}
- AUTH0_AUDIENCE=${AUTH0_AUDIENCE?:Missing AUTH0_AUDIENCE}
- AUTH0_ISSUER_URL=${AUTH0_ISSUER_URL?:Missing AUTH0_ISSUER_URL}
- CLOUDINARY_CLOUD_NAME=${CLOUDINARY_CLOUD_NAME?:Missing CLOUDINARY_CLOUD_NAME}
- CLOUDINARY_API_KEY=${CLOUDINARY_API_KEY?:Missing CLOUDINARY_API_KEY}
- CLOUDINARY_API_SECRET=${CLOUDINARY_API_SECRET?:Missing CLOUDINARY_API_SECRET}
- HLTB_BASE_API_URL=${HLTB_BASE_API_URL?:Missing HLTB_BASE_API_URL}
- SENTRY_DSN=${SENTRY_DSN?:Missing SENTRY_DSN}
- HLTB_RANDOM_SEARCH_API_HASH=${HLTB_RANDOM_SEARCH_API_HASH?:Missing HLTB_RANDOM_SEARCH_API_HASH}
ports:
- "${API_PORT:-3000}:${API_PORT:-3000}"
depends_on:
database-game-critique:
condition: service_healthy
redis:
condition: service_healthy
game-critique-web:
restart: unless-stopped
container_name: game-critique-web
pull_policy: build
image: game-critique-web:v1.0.3
build:
context: apps/web
dockerfile: Dockerfile
target: runner
args:
VITE_AUTH0_DOMAIN: ${AUTH0_DOMAIN:-http://game-critique-api:3000}
VITE_AUTH0_CLIENT_ID: ${AUTH0_CLIENT_ID?:Missing Auth0 client id}
VITE_AUTH0_AUDIENCE: ${AUTH0_AUDIENCE?:Missing Auth0 audience}
VITE_BASE_API_URL: ${API_URL?:Missing Base API URL}
ports:
- "${WEB_PORT:-3001}:80"
depends_on:
- game-critique-api