-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (53 loc) · 1.27 KB
/
docker-compose.yml
File metadata and controls
61 lines (53 loc) · 1.27 KB
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
version: '3.6'
services:
keycloak_web:
image: quay.io/keycloak/keycloak:latest
container_name: keycloak_web
volumes:
- ./keycloak:/opt/keycloak/data/import
environment:
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://postgres:5432/keycloak
KC_DB_USERNAME: admin
KC_DB_PASSWORD: admin
KC_HOSTNAME: localhost
KC_HOSTNAME_PORT: 8888
KC_HOSTNAME_STRICT: false
KC_HOSTNAME_STRICT_HTTPS: false
KC_LOG_LEVEL: info
KC_METRICS_ENABLED: true
KC_HEALTH_ENABLED: true
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
command: start-dev --import-realm
depends_on:
- postgres
ports:
- 8888:8080
postgres:
image: postgres:latest
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
web:
build: .
ports:
- "3000:3000"
environment:
RAILS_ENV: production
DATABASE_URL: postgresql://admin:admin@postgres:5432/rails
depends_on:
- postgres
smtp_server:
image: rnwood/smtp4dev:latest
ports:
- "4040:80"
- "2525:25"
volumes:
- smtp_server_data:/smtp4dev
volumes:
postgres_data:
smtp_server_data: