-
Notifications
You must be signed in to change notification settings - Fork 32
/
docker-compose.sso.yml
101 lines (101 loc) · 2.07 KB
/
docker-compose.sso.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
services:
db:
ports:
- 5432:5432
restart: "no"
volumes:
- postgres-data:/usr/share/postgres/data
redis:
ports:
- 6379:6379
restart: "no"
api:
build: .
ports:
- 8000:8000
volumes:
- .:/code:z
restart: "no"
depends_on:
- db
- redis
- es
- celery
- flower
environment:
- ENVIRONMENT=development
- DEBUG=${DEBUG-TRUE}
- OIDC_SERVER_URL=${OIDC_SERVER_URL-http://localhost:8080}
- OIDC_SERVER_INTERNAL_URL=${OIDC_SERVER_INTERNAL_URL-http://host.docker.internal:8080} # only for dev env
- OIDC_REALM=${OIDC_REALM-ocl}
keycloak:
image: quay.io/keycloak/keycloak:18.0.2
command: ["start-dev", "--health-enabled=true"]
ports:
- 8080:8080
volumes:
- keycloak-data:/usr/share/keycloak/data
environment:
- KEYCLOAK_ADMIN=${KEYCLOAK_ADMIN-root}
- KEYCLOAK_ADMIN_PASSWORD=${KEYCLOAK_ADMIN_PASSWORD-Root123}
- KC_HOSTNAME=${KC_HOSTNAME-localhost}
restart: "always"
healthcheck:
test: "curl --silent --fail http://localhost:8080/health || exit 1"
celery:
build: .
volumes:
- .:/code:z
restart: "no"
depends_on:
- redis
- celery_indexing
- celery_concurrent
- celery_bulk_import_0_1
- celery_bulk_import_2_3
- celery_bulk_import_root
celery_indexing:
build: .
volumes:
- .:/code:z
restart: "no"
celery_concurrent:
build: .
volumes:
- .:/code:z
restart: "no"
celery_bulk_import_0_1:
build: .
volumes:
- .:/code:z
restart: "no"
celery_bulk_import_2_3:
build: .
volumes:
- .:/code:z
restart: "no"
celery_bulk_import_root:
build: .
volumes:
- .:/code:z
restart: "no"
flower:
build: .
volumes:
- .:/code:z
ports:
- 5555:5555
restart: "no"
depends_on:
- celery
- redis
es:
ports:
- 9200:9200
restart: "no"
volumes:
- es-data:/usr/share/elasticsearch/data
volumes:
postgres-data:
es-data:
keycloak-data: