-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
50 lines (46 loc) · 1.2 KB
/
docker-compose.yaml
File metadata and controls
50 lines (46 loc) · 1.2 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
# NOTE: to be run from the top directory
version: "3"
services:
iam-db:
image: postgres:10.7-alpine
ports:
- "5432:5432"
volumes:
- ./iam-server/var/db/data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=iam
- POSTGRES_USER=iam
- POSTGRES_PASSWORD=hdig8g4g49htuhe
iam-object-store:
image: minio/minio:RELEASE.2021-02-11T08-23-43Z
ports:
- "11101:9000"
volumes:
- ./iam-server/var/object-store:/data
environment:
- MINIO_ACCESS_KEY=AKIAIOSFODNN7EXAMPLE
- MINIO_SECRET_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
command: server /data
iam-server:
build:
context: .
dockerfile: ./iam-server/Dockerfile
restart: on-failure
depends_on:
- iam-db
- iam-object-store
ports:
- "11111:8080"
- "11121:9080"
- "11131:50051"
volumes:
# To simulate secrets in Swarm mode
- ./iam-server/etc/secrets:/run/secrets
env_file:
- ./iam-server/etc/secrets/config.env
environment:
- IAM_GRPC_ENABLED=true
- IAM_HTTP_BASE_PATH=/
- IAM_REST_CANONICAL_BASE_URL=http://localhost:11121/rest/v1/
- LOG_LEVEL=debug
- LOG_PRETTY=true