-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdocker-compose.yml
65 lines (60 loc) · 1.68 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
version: "3"
services:
hubbit-frontend:
build:
context: frontend
dockerfile: Dockerfile
environment:
BACKEND_ADDRESS: http://hubbit-backend:8080
ports:
- ${FRONTEND_PORT}:3000
volumes:
- ./frontend:/app
- /app/node_modules
hubbit-backend:
build:
context: backend
dockerfile: Dockerfile
environment:
PORT: 8080
DATABASE_URL: postgres://hubbit:hubbit@hubbit-db/hubbit
REDIS_URL: redis://hubbit-redis:6379
GAMMA_API_KEY: hubbit
GAMMA_CLIENT_ID: hubbit
GAMMA_CLIENT_SECRET: hubbit
GAMMA_URL: https://auth.chalmers.it
GAMMA_REDIRECT_URI: http://localhost:3000/api/auth/gamma/callback
COOKIE_SECRET: vVQvsmpCkHLuleJthaEd5KhCC23mnW3W5RGSNGQOru6Y32VBrddDJEMNSXGXiKeqWhTEOAQRlfYtYjbuLMY1N2PuDbOaMzx7UPpt6Ejnm2Rq4C3Wwew8wlLbMHOt14SQ
COOKIE_SECURE: true
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:13.2
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