-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
45 lines (42 loc) · 974 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
45 lines (42 loc) · 974 Bytes
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
services:
# fastapi:
# build: .
# container_name: fastapi_app
# ports:
# - "8000:8000"
# depends_on:
# - redis
# - postgres
# command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
redis:
image: redis:latest
container_name: redis
ports:
- "6379:6379"
volumes:
- ./redis-data:/data
command: redis-server --appendonly yes
postgres:
image: postgres:15
container_name: postgres_db
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: mydatabase
volumes:
- postgres_data:/var/lib/postgresql/data
keycloak:
container_name: keycloak
image: quay.io/keycloak/keycloak:23.0.1
ports:
- "8080:8080"
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
command: ["start-dev"]
volumes:
- ./keycloak_data:/opt/keycloak/data/
volumes:
postgres_data: