-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
132 lines (118 loc) · 3.08 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
132 lines (118 loc) · 3.08 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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
services:
keycloak-postgres:
image: postgres:15.15
volumes:
- "keycloak-data:/var/lib/postgresql/data"
environment:
POSTGRES_DB: "keycloak"
POSTGRES_USER: "keycloak"
POSTGRES_PASSWORD: "password"
keycloak:
image: quay.io/keycloak/keycloak:26.4
environment:
KC_DB: "postgres"
KC_DB_URL: "jdbc:postgresql://keycloak-postgres:5432/keycloak"
KC_DB_USERNAME: "keycloak"
KC_DB_PASSWORD: "password"
KC_HOSTNAME: "localhost"
KC_HOSTNAME_PORT: 8080
KC_HOSTNAME_STRICT: false
KEYCLOAK_ADMIN: "admin"
KEYCLOAK_ADMIN_PASSWORD: "admin"
command: start-dev --import-realm
depends_on:
- keycloak-postgres
volumes:
- "./keycloak:/opt/keycloak/data/import:ro"
ports:
- "8080:8080"
postgres:
image: postgres:15.15
environment:
POSTGRES_DB: "postgres"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "password"
volumes:
- "postgres-data:/var/lib/postgresql/data"
ports:
- "5432:5432"
redis:
image: redis:8.4
command: redis-server --requirepass password
ports:
- "6379:6379"
influxdb:
image: influxdb:2.7
environment:
DOCKER_INFLUXDB_INIT_MODE: "setup"
DOCKER_INFLUXDB_INIT_USERNAME: "admin"
DOCKER_INFLUXDB_INIT_PASSWORD: "password"
DOCKER_INFLUXDB_INIT_ORG: "tasks"
DOCKER_INFLUXDB_INIT_BUCKET: "audit"
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: "tasks-token-secret"
ports:
- "8086:8086"
volumes:
- "influxdb-data:/var/lib/influxdb2"
backend:
build:
context: .
dockerfile: backend/Dockerfile
ports:
- "8000:80"
environment:
ENV: "development"
DATABASE_HOSTNAME: "postgres"
DATABASE_NAME: "postgres"
DATABASE_USERNAME: "postgres"
DATABASE_PASSWORD: "password"
REDIS_HOSTNAME: "redis"
REDIS_PASSWORD: "password"
ISSUER_URI: "http://keycloak:8080/realms/tasks"
PUBLIC_ISSUER_URI: "http://localhost:8080/realms/tasks"
CLIENT_ID: "tasks-backend"
CLIENT_SECRET: "tasks-secret"
SCAFFOLD_DIRECTORY: "/scaffold"
INFLUXDB_URL: "http://influxdb:8086"
INFLUXDB_TOKEN: "tasks-token-secret"
INFLUXDB_ORG: "tasks"
INFLUXDB_BUCKET: "audit"
volumes:
- "./scaffold:/scaffold:ro"
depends_on:
- postgres
- redis
- influxdb
web:
build:
context: .
dockerfile: web/Dockerfile
ports:
- "3000:80"
environment:
RUNTIME_ISSUER_URI: "http://localhost:8080/realms/tasks"
RUNTIME_CLIENT_ID: "tasks-web"
volumes:
- "./feedback:/feedback"
- "./profile:/profile"
depends_on:
- backend
simulator:
build:
context: .
dockerfile: simulator/Dockerfile
environment:
KEYCLOAK_URL: "http://keycloak:8080"
API_URL: "http://backend:80/graphql"
REALM: "tasks"
USE_DIRECT_GRANT: "true"
USERNAME: "test"
PASSWORD: "test"
CLIENT_ID: "tasks-web"
depends_on:
- backend
- keycloak
volumes:
keycloak-data:
postgres-data:
influxdb-data: