Skip to content

Commit 6f83f07

Browse files
committed
add worker to deployment
1 parent c82a8d9 commit 6f83f07

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ in-container/gunicorn:
9696
in-container/bot:
9797
$(MANAGE) run_bot
9898

99+
in-container/worker:
100+
$(MANAGE) db_worker -v 2
101+
99102
in-container/migrate:
100103
$(MANAGE) migrate
101104

deploy/templates/app/docker-compose.app.yml.j2

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,19 @@ services:
4242
condition: service_healthy
4343
restart: true
4444

45+
worker:
46+
image: "intbot:{{ app_version }}"
47+
command: "make in-container/worker"
48+
env_file:
49+
- intbot.env
50+
environment:
51+
- APP_VERSION={{ app_version[:8] }}
52+
depends_on:
53+
db:
54+
condition: service_healthy
55+
restart: true
56+
57+
4558
volumes:
4659
pgdata:
4760

0 commit comments

Comments
 (0)