-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompose.yml
More file actions
80 lines (75 loc) · 1.97 KB
/
Copy pathcompose.yml
File metadata and controls
80 lines (75 loc) · 1.97 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
services:
postgres:
image: postgres:17-alpine
restart: on-failure
environment:
POSTGRES_USER: notification_service
POSTGRES_PASSWORD: notification_service
POSTGRES_DB: notification_service
ports:
- 5434:5432
# networks:
# - helsinki
volumes:
- pgdata:/var/lib/postgresql@17/data
container_name: notification_service-db
keycloak:
image: quay.io/keycloak/keycloak
restart: on-failure
env_file:
- keycloak/docker-compose.keycloak.env
command:
- start-dev
- --http-port=8180
- --spi-theme-static-max-age=-1
- --spi-theme-cache-themes=false
- --spi-theme-cache-templates=false
- --import-realm
# networks:
# - helsinki
volumes:
- ./keycloak/realm.json:/opt/keycloak/data/import/realm.json:ro
ports:
- 8180:8180
container_name: notification-service-keycloak
django:
build:
context: .
target: ${DOCKER_TARGET:-development}
restart: on-failure
env_file:
- docker-compose.env
volumes:
- .:/app
# Prevent sharing the following directories between host and container
# to avoid ownership and/or platform issues:
- /app/.ruff_cache
- /app/.pytest_cache
# networks:
# - helsinki
ports:
- 8081:8081
- 8000:8000
depends_on:
- postgres
- keycloak
container_name: notification_service-api
validator:
image: openapitools/openapi-generator-cli
command: validate -i /api/openapi.yaml
container_name: notification_service-api-openapi-validator
volumes:
- ./openapi.yaml:/api/openapi.yaml
swagger-ui:
image: swaggerapi/swagger-ui
ports:
- 8082:8082
environment:
PORT: "8082"
SWAGGER_JSON: "/api/openapi.yaml"
container_name: notification_service-api-swagger-ui
volumes:
- ./openapi.yaml:/api/openapi.yaml
volumes:
pgdata:
driver: local