-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
86 lines (79 loc) · 2.1 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
81
82
83
84
85
86
version: "3.9"
services:
keycloak:
image: "bitnami/keycloak:24.0.3"
environment:
KEYCLOAK_HTTP_PORT: "8080"
KEYCLOAK_CREATE_ADMIN_USER: "true"
KEYCLOAK_ADMIN: "admin"
KEYCLOAK_PROXY: "edge"
KEYCLOAK_ADMIN_PASSWORD: "admin"
KEYCLOAK_DATABASE_HOST: "postgres"
KEYCLOAK_DATABASE_USER: "postgres"
KEYCLOAK_DATABASE_PASSWORD: "postgres"
KEYCLOAK_DATABASE_NAME: "postgres"
KEYCLOAK_DATABASE_PORT: "5432"
depends_on:
- "postgres"
networks:
- "cks-network"
keycloak-config-cli:
image: "bitnami/keycloak-config-cli:5.12.0"
environment:
KEYCLOAK_URL: "http://keycloak:8080"
KEYCLOAK_USER: "admin"
KEYCLOAK_PASSWORD: "admin"
IMPORT_FILES_LOCATIONS: "/config/*"
depends_on:
- "keycloak"
volumes:
- "./keycloak/master.yaml:/config/master.yaml"
networks:
- "cks-network"
nginx:
build: "./nginx"
ports:
- "80:80"
- "443:443"
volumes:
- "./nginx/certs:/opt/bitnami/openresty/nginx/conf/bitnami/certs:ro"
- "./nginx/server_blocks:/opt/bitnami/openresty/nginx/conf/server_blocks:ro"
- "./nginx/lua:/opt/bitnami/openresty/lua:ro"
depends_on:
- "couchdb"
- "keycloak"
networks:
- "cks-network"
postgres:
image: "bitnami/postgresql:15.6.0"
environment:
POSTGRESQL_USERNAME: "postgres"
POSTGRESQL_PASSWORD: "postgres"
POSTGRESQL_DATABASE: "postgres"
ports:
- "5432:5432"
volumes:
- "cks-postgres-data:/bitnami/postgresql"
networks:
- "cks-network"
couchdb:
image: "bitnami/couchdb:3.3.3"
environment:
COUCHDB_USER: "admin"
COUCHDB_PASSWORD: "admin"
COUCHDB_SECRET: "top-secret"
COUCHDB_BIND_ADDRESS: "0.0.0.0"
COUCHDB_PORT_NUMBER: "5984"
volumes:
- "cks-couchdb-data:/bitnami/couchdb"
- "./couchdb/10-config.ini:/opt/bitnami/couchdb/etc/local.d/10-config.ini"
networks:
- "cks-network"
networks:
cks-network:
driver: "bridge"
volumes:
cks-postgres-data:
driver: "local"
cks-couchdb-data:
driver: "local"