-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
103 lines (94 loc) · 2.31 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
version: '3.9'
networks:
shared-network:
driver: bridge
volumes:
data:
media:
pgdata:
redisdata:
services:
# This sidecar allows for the viewing of traces.
# zipkin:
# container_name: zipkin
# networks:
# - shared-network
# image: openzipkin/zipkin:2.11
# ports:
# - 9411:9411
# This sidecar publishes metrics to the console by default.
# metrics:
# container_name: metrics
# networks:
# - shared-network
# image: book-metrics-kit
# ports:
# - 3001:3001 # EXPVAR API
# - 4001:4001 # DEBUG API
# depends_on:
# - books-api
# #This is the core CRUD based service.
# books-api:
# container_name: books-api
# networks:
# - shared-network
# image: book-api-kit
# ports:
# - 3000:3000 # CRUD API
# - 4000:4000 # DEBUG API
# environment:
# - BOOKS_DB_HOST=postgres
# - BOOKS_DB_DISABLE_TLS=1 # This is only disabled for our development enviroment.
# # - GODEBUG=gctrace=1
# depends_on:
# - zipkin
# - postgres
keycloack:
image: quay.io/keycloak/keycloak:25.0.1
restart: always
command: ["start-dev"]
environment:
- KC_LOG_LEVEL=info
- KC_HOSTNAME=0.0.0.0
- KC_HOSTNAME_PORT=8080
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
healthcheck:
test: ["CMD", "curl", "-f", "http://0.0.0.0:8080/health/ready"]
interval: 15s
timeout: 2s
retries: 15
ports:
- 8080:8080
adminer:
image: docker.io/library/adminer
restart: always
environment:
- ADMINER_DESIGN=pepa-linha-dark
- ADMINER_DEFAULT_SERVER=db
- ADMINER_DEFAULT_DB_DRIVER=pgsql
- ADMINER_DEFAULT_DB_NAME=book
ports:
- 5499:5499
# # This starts a local PostgreSQL DB.
postgres:
image: docker.io/library/postgres:16
restart: unless-stopped
platform: linux/amd64
shm_size: 128mb
user: postgres
environment:
POSTGRES_USER: book
POSTGRES_PASSWORD: postgres-password
POSTGRES_DB: book
# POSTGRES_HOST_AUTH_METHOD: trust
# healthcheck:
# test: pg_isready -U book -d book
# interval: 10s
# timeout: 5s
# retries: 5
# network_mode: host
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data