-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.devintegrated.yml
102 lines (91 loc) · 2.46 KB
/
docker-compose.devintegrated.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
# Settings related with https://github.com/Greengage-project/interlink-project
version: "3.7"
services:
api:
container_name: "GAME_API_DEV"
build:
context: .
target: dev
ports:
- "8000:8000"
env_file:
- .env.integrated
environment:
- ENV=dev
- HOST=0.0.0.0
- PORT=8000
- LOG_LEVEL=debug
networks:
- traefik-public
volumes:
- ./app:/app/app
- ./migrations:/app/migrations
- game-logs:/app/logs
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.http.routers.GAME_API_DEV.rule=PathPrefix(`/gamengine`)
- traefik.http.middlewares.strip-gamengine.stripprefix.prefixes=/gamengine
- traefik.http.routers.GAME_API_DEV.middlewares=strip-gamengine
- traefik.http.services.GAME_API_DEV.loadbalancer.server.port=8000
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "10"
labels: "app=high_logging"
env: "ENV,DEBUG"
tag: "{{.ImageName}}/{{.Name}}/{{.ID}}"
dashboard_game:
container_name: "dashboard_game"
build:
context: ./dashboard
dockerfile: Dockerfile
volumes:
- ./dashboard:/app
- /app/node_modules
environment:
NODE_ENV: development
depends_on:
- api
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.http.routers.dashboard_game.rule=PathPrefix(`/gameDashboard`)
- traefik.http.middlewares.strip-dashboard_game.stripprefix.prefixes=/gameDashboard
- traefik.http.routers.dashboard_game.middlewares=strip-dashboard_game
- traefik.http.services.dashboard_game.loadbalancer.server.port=3000
networks:
- traefik-public
keycloakGame:
container_name: "keycloakGame"
image: keycloak/keycloak:25.0
hostname: keycloak
ports:
- "8080:8080"
env_file:
- .env.integrated
volumes:
- keycloak-data:/opt/keycloak/data
command: ["start-dev"]
networks:
- traefik-public
healthcheck_service:
build: ./healthcheck_service
container_name: health_checker
env_file:
- .env.integrated
environment:
DB_HOST: "postgres"
API_URL_KPI: "http://api:8000/api/v1/kpi"
depends_on:
- api
networks:
- traefik-public
networks:
traefik-public:
external: true
volumes:
postgres-data:
keycloak-data:
game-logs: