-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.prod.yml
92 lines (82 loc) · 2.25 KB
/
docker-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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
version: "3"
services:
hubbit-frontend:
build:
context: frontend
dockerfile: Dockerfile
image: hubbit-frontend
restart: unless-stopped
environment:
BACKEND_ADDRESS: http://hubbit-backend:8080
ports:
- ${FRONTEND_PORT}:3000
hubbit-backend:
build:
context: backend
dockerfile: Dockerfile
image: hubbit-backend
restart: unless-stopped
environment:
PORT: 8080
DATABASE_URL: postgres://hubbit:hubbit@hubbit-db/hubbit
REDIS_URL: redis://hubbit-redis:6379
GAMMA_PUBLIC_URL: http://localhost:8081
GAMMA_INTERNAL_URL: http://gamma-backend:3000
GAMMA_API_KEY: hubbit
GAMMA_CLIENT_ID: hubbit
GAMMA_CLIENT_SECRET: hubbit
COOKIE_SECRET: QkAbEaSuT5UNDthgnScWhQwET7HzHUzFPhrS62xwYUwvtbx2ihmQanSSML2Ky63r
COOKIE_SECURE: "true"
RUST_LOG: warn
ports:
- ${BACKEND_PORT}:8080
hubbit-db:
image: postgres:13.2
restart: unless-stopped
environment:
POSTGRES_DB: ${PG_DATABASE}
POSTGRES_USER: ${PG_USERNAME}
POSTGRES_PASSWORD: ${PG_PASSWORD}
ports:
- ${PG_LOCAL_PORT}:5432
hubbit-redis:
image: redis:6.2
restart: unless-stopped
ports:
- ${REDIS_PORT}:6379
gamma-frontend:
image: cthit/gamma-frontend:development
environment:
HTTP_PROXY: http://gamma-backend:3000
ports:
- ${LOCAL_GAMMA_FRONTEND_PORT}:3000
gamma-backend:
image: cthit/gamma-backend
environment:
# Default admin user name = admin
# Default admin password = password
DB_USER: gamma
DB_PASSWORD: gamma
DB_HOST: gamma-db
DB_PORT: 5432
DB_NAME: gamma
REDIS_HOST: gamma-redis
REDIS_PASSWORD: ""
REDIS_PORT: 6379
SERVER_PORT: 3000
SUCCESSFUL_LOGIN: http://localhost:${LOCAL_GAMMA_FRONTEND_PORT}
CORS_ALLOWED_ORIGIN: http://localhost:${LOCAL_GAMMA_FRONTEND_PORT}
BACKEND_URI: http://localhost:${LOCAL_GAMMA_BACKEND_PORT}/api/
PRODUCTION: "false"
COOKIE_DOMAIN: localhost
IS_MOCKING: "true"
ports:
- ${LOCAL_GAMMA_BACKEND_PORT}:3000
gamma-redis:
image: redis:5.0
gamma-db:
image: postgres:10
environment:
POSTGRES_USER: gamma
POSTGRES_DB: gamma
POSTGRES_PASSWORD: gamma