-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
35 lines (33 loc) · 979 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
services:
postgres:
image: postgres:17.2-alpine
container_name: rare-basket-postgres
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- ENV=dev
# copying the setup.sql file in the /docker-entrypoint-initdb.d/ directory
# the script run on start by the postgres container
# and creates the appropriate databases and users
volumes:
- ./backend/database/setup/setup.sql:/docker-entrypoint-initdb.d/setup.sql:cached
ports:
- 5432:5432
smtp:
image: mailhog/mailhog:v1.0.1
container_name: rare-basket-smtp
ports:
- 25:1025
- 8025:8025
keycloak:
image: quay.io/keycloak/keycloak:26.1.0
container_name: rare-basket-keycloak
volumes:
- ./keycloak:/opt/keycloak/data/import
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
DB_VENDOR: h2
KC_HTTP_RELATIVE_PATH: /auth
ports:
- 8082:8080
command: ['start-dev', '--import-realm']