forked from gettakaro/takaro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
175 lines (160 loc) · 5.01 KB
/
docker-compose.test.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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
services:
postgresql:
image: postgres:15
ports:
- '5432:5432'
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
redis:
extends:
file: docker-compose.yml
service: redis
kratos:
environment:
- DSN=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgresql_kratos:5432/${POSTGRES_DB}
extends:
file: docker-compose.yml
service: kratos
kratos-migrate:
environment:
- DSN=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgresql_kratos:5432/${POSTGRES_DB}
extends:
file: docker-compose.yml
service: kratos-migrate
postgresql_kratos:
image: postgres:15
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
hydra:
environment:
- DSN=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgresql_hydra:5432/${POSTGRES_DB}
extends:
file: docker-compose.yml
service: hydra
hydra-e2e:
environment:
- DSN=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgresql_hydra:5432/${POSTGRES_DB}
extends:
file: docker-compose.yml
service: hydra-e2e
hydra-migrate:
environment:
- DSN=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgresql_hydra:5432/${POSTGRES_DB}
extends:
file: docker-compose.yml
service: hydra-migrate
postgresql_hydra:
image: postgres:15
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
takaro:
container_name: takaro
build:
context: .
dockerfile: containers/takaro/dev.Dockerfile
command: ['sh']
environment:
NODE_OPTIONS: '--loader ts-node/esm'
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_HOST: 'postgresql'
POSTGRES_ENCRYPTION_KEY: ${POSTGRES_ENCRYPTION_KEY}
REDIS_HOST: 'redis'
ADMIN_CLIENT_ID: ${ADMIN_CLIENT_ID}
ADMIN_CLIENT_SECRET: ${ADMIN_CLIENT_SECRET}
TAKARO_OAUTH_HOST: http://hydra:4444
TAKARO_HOST: http://takaro_api:3000
KRATOS_ADMIN_URL: http://kratos:4434
TEST_HTTP_TARGET: http://takaro_api:3000
FUNCTIONS_EXECUTION_MODE: 'local'
MOCK_GAMESERVER_HOST: 'http://takaro_mock_gameserver:3002'
MOCHA_RETRIES: ${MOCHA_RETRIES}
TRACING_ENABLED: ${TRACING_ENABLED}
TRACING_ENDPOINT: "http://grafana_agent:4317"
takaro_api:
image: ghcr.io/gettakaro/takaro-app-api:${DOCKER_TAG}
restart: always
container_name: takaro_api
volumes:
- ./reports:/app/reports
environment:
LOGGING_LEVEL: debug
#LOGGING_MINIMAL: "true"
REDIS_HOST: 'redis'
JWT_SECRET: '${JWT_SECRET}'
FUNCTIONS_EXECUTION_MODE: 'local'
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_HOST: 'postgresql'
POSTGRES_ENCRYPTION_KEY: ${POSTGRES_ENCRYPTION_KEY}
ADMIN_CLIENT_ID: ${ADMIN_CLIENT_ID}
ADMIN_CLIENT_SECRET: ${ADMIN_CLIENT_SECRET}
TAKARO_OAUTH_HOST: http://hydra:4444
TAKARO_HOST: http://takaro_api:3000
MOCK_GAMESERVER_HOST: http://takaro_mock_gameserver:3002
CORS_ALLOWED_ORIGINS: http://127.0.0.1:13000,http://127.0.0.1:13001
TRACING_ENABLED: ${TRACING_ENABLED}
TRACING_ENDPOINT: "http://grafana_agent:4317"
ports:
# api
- 13000:3000
- 12001:12001
takaro_web_main:
image: ghcr.io/gettakaro/takaro-web-main:${DOCKER_TAG}
restart: always
container_name: takaro_web_main
environment:
VITE_API: http://127.0.0.1:13000
VITE_ORY_URL: http://127.0.0.1:4433
ports:
- 13001:80
takaro_mock_gameserver:
image: ghcr.io/gettakaro/takaro-app-mock-gameserver:${DOCKER_TAG}
restart: always
container_name: takaro_mock_gameserver
environment:
LOGGING_LEVEL: debug
REDIS_HOST: 'redis'
TRACING_ENABLED: ${TRACING_ENABLED}
TRACING_ENDPOINT: "http://grafana_agent:4317"
ports:
- 3002:3002
takaro_connector:
image: ghcr.io/gettakaro/takaro-app-connector:${DOCKER_TAG}
restart: always
container_name: takaro_connector
environment:
LOGGING_LEVEL: debug
REDIS_HOST: 'redis'
ADMIN_CLIENT_ID: ${ADMIN_CLIENT_ID}
ADMIN_CLIENT_SECRET: ${ADMIN_CLIENT_SECRET}
TAKARO_OAUTH_HOST: http://hydra:4444
TAKARO_HOST: http://takaro_api:3000
TRACING_ENABLED: ${TRACING_ENABLED}
TRACING_ENDPOINT: "http://grafana_agent:4317"
ports:
- 3003:3003
mailhog:
image: mailhog/mailhog
container_name: mailhog
ports:
# SMTP
# Doesnt need to be exposed outside the container network
# But keeping comment for 'documentation purposes'
# - 14000:1025
# Web
- 8025:8025
logging:
driver: none
networks:
takaro:
external:
name: takaro