-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (56 loc) · 1.28 KB
/
Copy pathdocker-compose.yml
File metadata and controls
56 lines (56 loc) · 1.28 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
services:
nginx:
image: nginx
container_name: nginx
ports:
- "80:80"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
depends_on:
- fastapi
- react
- keycloak
keycloak:
image: quay.io/keycloak/keycloak:latest
container_name: keycloak
command: start-dev
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
KC_PROXY_HEADERS: "xforwarded"
KC_HOSTNAME: http://localhost:8080
ports:
- 8080:8080
volumes:
- ./keycloak:/opt/keycloak/data/h2
fastapi:
container_name: fastapi
build:
context: ./fastapi
dockerfile: Dockerfile
ports:
- "8000:8000"
- "5678:5678"
volumes:
- ./fastapi:/src
environment:
- WATCHFILES_FORCE_POLLING=true
- KC_BASE_URL=http://localhost/auth/
- KC_REALM_NAME=test-realm
- KC_CLIENT_ID=web-app
- KC_CLIENT_SECRET=NBCVAXUMENN72ch6JUUzFXmUS7upQVAK
tty: true
entrypoint: ["/src/start.sh", "--dev"]
react:
container_name: react
build:
context: ./react
dockerfile: Dockerfile
ports:
- "5173:5173"
volumes:
- ./react:/app
environment:
- CHOKIDAR_USEPOLLING=true
tty: true
command: sh -c "cd front && npm install && npm run dev"