-
Notifications
You must be signed in to change notification settings - Fork 4
/
prod.docker-compose.yml
105 lines (92 loc) · 2.32 KB
/
prod.docker-compose.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
93
94
95
96
97
98
99
100
101
102
103
104
105
version: "3"
services:
backend:
build:
context: backend
dockerfile: Dockerfile
ports:
- 8080:8080
depends_on:
- db
- redis
environment:
DB_USER: postgres
DB_PASS: password
DB_HOST: db
DB_PORT: 5432
DB_NAME: bookit
GAMMA_AUTH_URL: http://localhost:8081/api/oauth/authorize
GAMMA_TOKEN_URL: http://gamma-backend:8081/api/oauth/token
GAMMA_USER_URL: http://gamma-backend:8081/api/users/me
GAMMA_CLIENT_ID: id
GAMMA_CLIENT_SECRET: secret
GAMMA_CALLBACK_URL: http://localhost:3001/auth/callback
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_PASS: ""
SESSION_SECRET: secret
GRAPHIQL: "true"
MOCK: "true"
ADMIN_AUTHORITY: bookit-admin
PORT: 8080
TZ: "Europe/Stockholm"
db:
image: postgres:12
environment:
POSTGRES_DB: bookit
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
TZ: "Europe/Stockholm"
ports:
- 5432:5432
redis:
image: redis:5.0
ports:
- 6379:6379
################## Gamma ##################
gamma-frontend:
image: cthit/gamma-frontend:development
environment:
HTTP_PROXY: http://gamma-backend:8081
depends_on:
- gamma-backend
ports:
- 3000:3000
gamma-backend:
image: cthit/gamma-backend:development
environment:
# Default admin user name = admin
# Default admin password = password
DB_USER: user
DB_PASSWORD: password
DB_HOST: gamma-db
DB_PORT: 5432
DB_NAME: postgres
REDIS_HOST: gamma-redis
REDIS_PASSWORD: ""
REDIS_PORT: 6379
DEFAULT_CLIENT_NAME: demo
DEFAULT_CLIENT_ID: id
DEFAULT_CLIENT_SECRET: secret
DEFAULT_REDIRECT_URI: http://localhost:3001/auth/callback
DEFAULT_API_KEY: key
SERVER_PORT: 8081
SUCCESSFUL_LOGIN: http://localhost:3000
CORS_ALLOWED_ORIGIN: http://localhost:3000
BACKEND_URI: http://localhost:8081/api/
PRODUCTION: "false"
COOKIE_DOMAIN: localhost
IS_MOCKING: "true"
depends_on:
- gamma-redis
- gamma-db
ports:
- 8081:8081
gamma-redis:
image: redis:5.0
gamma-db:
image: postgres:10
environment:
POSTGRES_USER: user
POSTGRES_DB: postgres
POSTGRES_PASSWORD: password