-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
63 lines (63 loc) · 1.57 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
63 lines (63 loc) · 1.57 KB
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
networks:
gamma:
mat:
services:
backend:
build:
context: ./go-backend
image: linkit_backend:dev
network_mode: "service:frontend"
volumes:
- ./backend:/usr/src/app
environment:
ADMINS: admin
REDIRECT_URL: "localhost:3001"
OIDC_CLIENT_ID: "id"
OIDC_CLIENT_SECRET: "secret"
OIDC_REDIRECT: "http://localhost:3001/auth/account/callback"
OIDC_ISSUER: "https://auth.chalmers.it"
DB_USER: postgres
DB_PORT: 5432
DB_PASS: example
DB_NAME: bookit
DB_HOST: db
REDIS_URI: redis:6379
depends_on:
- redis
frontend:
build:
context: ./frontend
dockerfile: dev.Dockerfile
image: linkit_frontend:dev
networks:
- mat
ports:
- 3001:3000
- 4000:4000
- 4001:4001
volumes:
- ./frontend/src:/usr/src/app/src
- ./frontend/public:/usr/src/app/public
adminer:
image: adminer
ports:
- 8085:8080
networks:
- mat
db:
image: postgres:12
restart: always
networks:
- mat
environment:
POSTGRES_DB: bookit
POSTGRES_USER: postgres
POSTGRES_PASSWORD: example
ports:
- 5432:5432 # Used by datagrip
redis:
image: redis:5.0.8
networks:
- mat
ports:
- 6379:6379