-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
80 lines (78 loc) · 1.9 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
version: '3.9'
services:
reverse_proxy:
build:
context: ./nginx_reverse_proxy
dockerfile: nginx.Dockerfile
ports:
- 80:80
- 443:443
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:80']
secrets:
- ssl_cert
- ssl_key
restart: always
postgres:
image: postgres:13
volumes:
- keycloak_postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password
healthcheck:
test: ["CMD", "pg_isready", "-U", "keycloak"]
restart: always
keycloak:
image: quay.io/keycloak/keycloak:19.0.1
command: ["start-dev", "--proxy", "edge", "--http-relative-path", "/auth", "--hostname-admin", "localhost"]
environment:
KC_DB: postgres
KC_DB_URL_HOST: postgres
KC_DB_URL_DATABASE: keycloak
KC_DB_USERNAME: keycloak
KC_DB_SCHEMA: public
KC_DB_PASSWORD: password
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: Pa55w0rd
KC_METRICS_ENABLED: "true"
healthcheck:
test: ["CMD", "curl","--fail","http://localhost:9990/health"]
interval: 30s
timeout: 30s
retries: 3
# ports:
# - 8080:8080
# - 8443:8443
restart: always
depends_on:
- postgres
vue-app:
build:
context: ./vue_app/
dockerfile: vue.Dockerfile
# ports:
# - "3000:80"
restart: "always"
healthcheck:
test: ["CMD", "curl","--fail","localhost:80/health"]
interval: 30s
retries: 3
fastapi-app:
build:
context: ./fastapi_app
dockerfile: fastapi.Dockerfile
# ports:
# - 5000:5000
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:5000/api/hello']
start_period: 7s
restart: always
volumes:
keycloak_postgres_data:
secrets:
ssl_cert:
file: certs/site.crt
ssl_key:
file: certs/site.key