-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
41 lines (39 loc) · 845 Bytes
/
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
services:
postgres:
image: postgres
container_name: postgres-container
environment:
POSTGRES_PASSWORD: mysecretpassword
volumes:
- postgres-data:/var/lib/postgresql/data
- ./docker/db/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- pitangaweb
ports:
- "5432:5432"
keycloak:
build:
dockerfile: ./docker/keycloak.Dockerfile
context: .
args:
PG_URL: jdbc:postgres://postgres:5432/kc_pitanga
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: changeme
ports:
- "8444:8443"
networks:
- pitangaweb
depends_on:
- postgres
deploy:
replicas: 1
resources:
limits:
cpus: "0.5"
memory: 2G
networks:
pitangaweb:
driver: bridge
volumes:
postgres-data: