-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathcompose.dev.yaml
60 lines (59 loc) · 1.67 KB
/
compose.dev.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
services:
traefik:
image: traefik
ports:
- 80:80
- 443:443
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./config/traefik:/etc/traefik:ro
networks:
- public
labels:
- traefik.enable=true
- traefik.http.routers.traefik.tls=true
- traefik.http.routers.traefik.entrypoints=web-secure
- traefik.http.routers.traefik.rule=Host(`traefik.localhost`)
- [email protected]=8080
keycloak:
image: jboss/keycloak:13.0.1
volumes:
- ./config/keycloak.json:/mnt/keycloak.json:ro
environment:
DB_VENDOR: H2
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: password
KEYCLOAK_IMPORT: /mnt/keycloak.json
PROXY_ADDRESS_FORWARDING: 'true'
KEYCLOAK_FRONTEND_URL: https://keycloak.localhost/auth
networks:
- public
labels:
- traefik.enable=true
- traefik.http.routers.keycloak.tls=true
- traefik.http.routers.keycloak.entrypoints=web-secure
- traefik.http.routers.keycloak.rule=Host(`keycloak.localhost`)
- traefik.http.services.keycloak.loadbalancer.server.port=8080
# We spin up a separate test DB to keep it pristine and undisturbed from dev runs;
# crucially, the seeds should NEVER run on these test DB's!!
postgres-test:
image: postgres:14-alpine
ports:
- 54320:5432
environment:
POSTGRES_DB: blink
POSTGRES_USER: knex
POSTGRES_HOST_AUTH_METHOD: trust
tmpfs:
- /var/lib/postgresql/data
networks:
- public
redis-test:
image: redis:7-alpine
ports:
- 63790:6379
networks:
- public
networks:
public:
external: true