-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
52 lines (47 loc) · 1.17 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
version: '3.4'
services:
booking.api:
image: ${DOCKER_REGISTRY-}bookingapi
container_name: Booking.Api
build:
context: .
dockerfile: Booking.Api/Dockerfile
depends_on:
- booking.db
booking.db:
image: postgres:latest
container_name: Booking.Db
environment:
- POSTGRES_DB=booking
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- ./containers/database:/var/lib/postgresql/data
ports:
- "5432:5432"
booking.idp:
image: quay.io/keycloak/keycloak:latest
container_name: Booking.Identity
command: start-dev --import-realm
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
volumes:
- ./.containers/identity:/opt/keycloak/data
- ./.files/booking-realm-export.json:/opt/keycloak/data/import/realm.json
ports:
- "18080:8080"
booking-seq:
image: datalust/seq:latest
container_name: Booking.Seq
environment:
- ACCEPT_EULA=Y
ports:
- "5341:5341"
- "8081:80"
booking-redis:
image: redis:latest
container_name: Booking.Redis
restart: always
ports:
- "6379:6379"