-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (26 loc) · 850 Bytes
/
docker-compose.yml
File metadata and controls
29 lines (26 loc) · 850 Bytes
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
services:
identitysuite.linux:
image: ${DOCKER_REGISTRY-}identitysuitelinux
build:
context: .
dockerfile: IdentitySuite.Linux/Dockerfile
ports:
- "5000:8080" # expose container port 8080 on localhost:5000
depends_on:
- db
environment:
# PostgreSQL connection string using the Docker service name as host
- IdentitySuiteOptions__Database__ConnectionStrings__PostgreSqlConnection=Host=db;Port=5432;Database=identitydb;Username=identity;Password=secret
db:
image: postgres:16
restart: always
environment:
POSTGRES_USER: identity
POSTGRES_PASSWORD: secret
POSTGRES_DB: identitydb
ports:
- "5433:5432" # optional: exposes PostgreSQL outside Docker for local inspection
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
pgdata: