Skip to content

Commit 30bb6a1

Browse files
committed
Add bot to stack
1 parent 3ea3671 commit 30bb6a1

File tree

4 files changed

+41
-0
lines changed

4 files changed

+41
-0
lines changed

deploy/load-test/stack/bot.env

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
APP_USERNAME=BOT_random
2+
APP_LEVEL=0
3+
APP_JOIN_AFTER=5
4+
APP_RABBIT_MQ_DSN=amqp://guest:guest@rabbitmq:5672
5+
APP_NCHAN_SUB_URL=http://nchan/sub
6+
APP_RPC_TIMEOUT=10s
7+
APP_RPC_EXCHANGE=gaming

deploy/load-test/stack/connect-four/app.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ services:
5959
- "node.labels.long-running==1"
6060
labels:
6161
- "prometheus-job=connect-four-transient-rpc"
62+
connect-four-bot:
63+
image: ghcr.io/gaming-platform/service-connect-four-bot
64+
env_file: ../bot.env
6265

6366
volumes:
6467
proxysql.sock:

deploy/single-server/docker-compose.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,21 @@ services:
186186
command: bin/console gaming:consume-messages all
187187
labels:
188188
- "prometheus-job=consume-messages"
189+
connect-four-bot:
190+
image: ghcr.io/gaming-platform/service-connect-four-bot
191+
environment:
192+
APP_USERNAME: 'BOT_random'
193+
APP_LEVEL: '0'
194+
APP_JOIN_AFTER: '5'
195+
APP_RABBIT_MQ_DSN: 'amqp://guest:guest@rabbitmq:5672'
196+
APP_NCHAN_SUB_URL: 'http://nchan/sub'
197+
APP_RPC_TIMEOUT: '10s'
198+
APP_RPC_EXCHANGE: 'gaming'
199+
depends_on:
200+
- rabbitmq
201+
- nchan
202+
- consume-messages
203+
restart: on-failure
189204

190205
volumes:
191206
mysql:

docker-compose.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,22 @@ services:
183183
command: bin/restartOnChange bin/console gaming:consume-messages all
184184
labels:
185185
- "prometheus-job=consume-messages"
186+
connect-four-bot:
187+
image: ghcr.io/gaming-platform/service-connect-four-bot
188+
# build: { context: ../service-connect-four-bot, target: development }
189+
environment:
190+
APP_USERNAME: 'BOT_random'
191+
APP_LEVEL: '0'
192+
APP_JOIN_AFTER: '5'
193+
APP_RABBIT_MQ_DSN: 'amqp://guest:guest@rabbitmq:5672'
194+
APP_NCHAN_SUB_URL: 'http://nchan/sub'
195+
APP_RPC_TIMEOUT: '10s'
196+
APP_RPC_EXCHANGE: 'gaming'
197+
depends_on:
198+
- rabbitmq
199+
- nchan
200+
- php-consume-messages
201+
restart: on-failure
186202

187203
##############################
188204
# Development helper #

0 commit comments

Comments
 (0)