-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
66 lines (62 loc) · 1.49 KB
/
docker-compose.yaml
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
version: '3.8'
services:
postgres:
image: postgres:14.3
ports:
- 5432:5432
volumes:
- ./env/docker/postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d:ro
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_DB: "app"
POSTGRES_USER: "dev"
POSTGRES_PASSWORD: "dev"
command: "-c 'max_connections=200'"
postgres-test:
image: postgres:14.3
ports:
- 5433:5432
volumes:
- postgres-test-data:/var/lib/postgresql/data
environment:
POSTGRES_DB: "test"
POSTGRES_USER: "dev"
POSTGRES_PASSWORD: "dev"
command: "-c 'max_connections=200'"
# @TODO: Enable keycloak support
# keycloak:
# build:
# context: ./env/docker/keycloak
# dockerfile: Dockerfile
# ports:
# - 8080:8080
# environment:
# #KEYCLOAK_USER: dev
# #KEYCLOAK_PASSWORD: dev
# KC_DB_USERNAME: dev
# KC_DB_PASSWORD: dev
# KC_DB_URL_PORT: 5432
# KC_DB_URL_HOST: postgres
# #KC_LOG_LEVEL: info
# KC_HOSTNAME: localhost
# KC_HOSTNAME_PORT: 8080
#
# DB_VENDOR: POSTGRES
# #DB_ADDR: postgres
# DB_DATABASE: keycloak
# #DB_USER: dev
# DB_SCHEMA: public
# #DB_PASSWORD: dev
# PROXY_ADDRESS_FORWARDING: "true"
# depends_on:
# - postgres
#
# [ volumes definition ]
#
# creates Docker volumes which can be mounted by other containers too e.g. for backup
#
volumes:
postgres-data:
driver: local
postgres-test-data:
driver: local