-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (43 loc) · 1.25 KB
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (43 loc) · 1.25 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
# Local development stack: Postgres, MinIO (S3-compatible photo store), and
# Keycloak as a stand-in OIDC provider. Works with `docker compose up -d` or
# `podman-compose up -d`; on podman without a compose provider, the
# equivalent scripts/dev-up.sh drives the same containers directly.
#
# None of this ships to production — see README "Deployment".
services:
postgres:
image: docker.io/library/postgres:16
environment:
POSTGRES_USER: duck
POSTGRES_PASSWORD: duck
POSTGRES_DB: duck
ports:
- "5432:5432"
volumes:
- duck-pg:/var/lib/postgresql/data
minio:
image: docker.io/minio/minio:latest
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
ports:
- "9000:9000"
- "9001:9001"
volumes:
- duck-minio:/data
keycloak:
image: docker.io/keycloak/keycloak:latest
command: start-dev --import-realm
environment:
KC_BOOTSTRAP_ADMIN_USERNAME: admin
KC_BOOTSTRAP_ADMIN_PASSWORD: admin
ports:
- "8081:8080"
volumes:
- duck-kc:/opt/keycloak/data
- ./dev/keycloak-realm.json:/opt/keycloak/data/import/ducks-realm.json:ro
volumes:
duck-pg:
duck-minio:
duck-kc: