-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdocker-compose.yml
37 lines (35 loc) · 916 Bytes
/
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
version: '3.4'
services:
bookify.api:
image: ${DOCKER_REGISTRY-}bookifyapi
build:
context: .
dockerfile: src/Bookify.Api/Dockerfile
ports:
- "80:80"
- "443:443"
depends_on:
- bookify-db
bookify-db:
image: postgres:latest
container_name: Bookify.Db
environment:
- POSTGRES_DB=bookify
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- ./.containers/database:/var/lib/postgresql/data
ports:
- 5432:5432
bookify-idp:
image: jboss/keycloak:latest
container_name: Bookify.Identity
environment:
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=admin
- KEYCLOAK_IMPORT=/tmp/bookify-realm-export.json
volumes:
- ./.containers/identity:/opt/jboss/keycloak/standalone/data
- ./.files/bookify-realm-export.json:/tmp/bookify-realm-export.json
ports:
- 18080:8080