-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
108 lines (96 loc) · 2.65 KB
/
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
106
107
108
version: "3"
services:
hubbit-frontend:
build:
context: frontend
dockerfile: dev.Dockerfile
environment:
BACKEND_ADDRESS: http://hubbit-backend:8080
ports:
- ${FRONTEND_PORT}:3000
volumes:
- ./frontend:/app
- /app/node_modules
hubbit-backend:
build:
context: backend
dockerfile: dev.Dockerfile
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: "false"
RUST_LOG: ${BACKEND_LOG_LEVEL}
GROUP_WHITELIST: ${GROUP_WHITELIST}
ports:
- ${BACKEND_PORT}:8080
volumes:
- ./backend:/app
- /app/target
depends_on:
- "hubbit-db"
command: ["./wait-for-postgres.sh", "hubbit-db", "${PG_PASSWORD}", "${PG_USERNAME}", "sh", "-c", "cargo sqlx migrate run && cargo watch -x run"]
hubbit-db:
image: postgres:16
environment:
POSTGRES_DB: ${PG_DATABASE}
POSTGRES_USER: ${PG_USERNAME}
POSTGRES_PASSWORD: ${PG_PASSWORD}
ports:
- ${PG_LOCAL_PORT}:5432
hubbit-redis:
image: redis:6.2
ports:
- ${REDIS_PORT}:6379
adminer:
image: adminer
ports:
- ${ADMINER_PORT}:8080
redis-ui:
image: patrikx3/p3x-redis-ui:2023.10.243
ports:
- ${REDIS_UI_PORT}:7843
volumes:
- /settings
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