-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
118 lines (111 loc) · 3.14 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
version: "3.9"
services:
app:
hostname: app
build: .
restart: unless-stopped
volumes:
- ./src:/code/src
networks:
- web
depends_on:
- "db"
- "keycloak"
environment:
IVT_OPENID_DISCOVERY_URL: 'http://keycloak:8080/auth/realms/master/.well-known/openid-configuration'
IVT_OPENID_DISCOVERY_EXTERNAL_URL: 'http://keycloak.localhost/auth/realms/master/.well-known/openid-configuration'
# IVT_ENABLE_AUTH: 'true'
labels:
- "traefik.enable=true"
- "traefik.http.routers.invitease.rule=Host(`invitease.localhost`)"
- "traefik.http.routers.invitease.entrypoints=web"
- "traefik.docker.network=web"
- "traefik.http.services.invitease.loadbalancer.server.port=8090"
dbmanager:
image: dpage/pgadmin4
hostname: dbmanager
restart: unless-stopped
environment:
- PGADMIN_DEFAULT_PASSWORD=admin
- PGADMIN_LISTEN_PORT=8084
volumes:
- ./init/db/servers.json:/pgadmin4/servers.json
depends_on:
- db
networks:
- web
labels:
- "traefik.enable=true"
- "traefik.http.routers.dbadmin.rule=Host(`dbadmin.localhost`)"
- "traefik.http.routers.dbadmin.entrypoints=web"
- "traefik.docker.network=web"
- "traefik.http.services.dbadmin.loadbalancer.server.port=8084"
db:
image: postgres:14-alpine
hostname: db
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=invitease
- POSTGRES_DB=invitease
ports:
- 5432:5432
networks:
- web
volumes:
- ./init/db/baseline.sql:/docker-entrypoint-initdb.d/baseline.sql
- pg_data:/var/lib/postgresql/data
keycloak:
image: jboss/keycloak:latest
hostname: keycloak
restart: unless-stopped
networks:
- web
depends_on:
- db
volumes:
- ./init/keycloak:/opt/jboss/startup-scripts
environment:
- DB_VENDOR=POSTGRES
- DB_ADDR=db
- DB_PORT=5432
- DB_DATABASE=keycloak
- DB_USER=invitease
- DB_SCHEMA=public
- DB_PASSWORD=password
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=admin
labels:
- "traefik.enable=true"
- "traefik.http.routers.keycloak.rule=Host(`keycloak.localhost`)"
- "traefik.http.routers.keycloak.entrypoints=web"
- "traefik.docker.network=web"
- "traefik.http.services.keycloak.loadbalancer.server.port=8080"
traefik:
image: traefik:v2.5.4
command:
- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
depends_on:
- "app"
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.dashboard.rule=Host(`dash.localhost`)"
- "traefik.http.routers.dashboard.entrypoints=web"
- "traefik.http.routers.dashboard.service=api@internal"
ports:
- "80:80"
networks:
- web
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
web:
driver: bridge
volumes:
pg_data: