-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
59 lines (57 loc) · 1.3 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
version: "3.9"
services:
postgres:
image: postgres
container_name: postgres_container
restart: always
ports:
- "6034:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./sql:/docker-entrypoint-initdb.d/:ro
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password
POSTGRES_HOST_AUTH_METHOD: "trust"
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin_container
restart: always
ports:
- "6084:80"
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
volumes:
- pgadmin_data:/var/lib/pgadmin
keycloak:
image: quay.io/keycloak/keycloak:legacy
container_name: keycloak_container
environment:
DB_VENDOR: POSTGRES
DB_ADDR: postgres
DB_DATABASE: keycloak
DB_USER: keycloak
DB_SCHEMA: public
DB_PASSWORD: password
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: Pa55w0rd
ports:
- 8080:8080
depends_on:
- postgres
client:
build: ./client
container_name: frontend_container
command: npm start
volumes:
- ./client/:/usr/app
- /usr/app/node_modules
depends_on:
- keycloak
ports:
- "3000:3000"
volumes:
postgres_data:
pgadmin_data: