Skip to content

Commit 3790e5f

Browse files
committed
Add task container
1 parent 9de6acf commit 3790e5f

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ RUN dnf -y install \
1313
libtool-ltdl-devel \
1414
libpq-devel \
1515
libpq \
16-
postgresql
16+
postgresql \
17+
git
1718

1819
RUN python3.11 -m venv /venv
1920

docker-compose.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,30 @@ services:
99
- "55432:5432"
1010

1111
test_app:
12-
build:
12+
build: &build_info
1313
context: .
1414
working_dir: /src
1515
command: './test_app/scripts/container_startup_uwsgi.sh'
1616
volumes:
1717
- '.:/src:z'
1818
ports:
1919
- '8000:8000'
20-
depends_on:
20+
depends_on: &depends_info
2121
postgres:
2222
condition: service_healthy
23-
environment:
23+
environment: &env_info
2424
DB_HOST: postgres
2525
DB_PORT: 5432
2626
DB_USER: dab
2727
DB_PASSWORD: dabing
2828

29+
test_app_task:
30+
build: *build_info
31+
working_dir: /src
32+
command: 'python manage.py run_dispatcher'
33+
depends_on: *depends_info
34+
environment: *env_info
35+
2936
# This is the intermediate application reverse proxy without ssl
3037
nginx:
3138
image: "nginx:latest"

0 commit comments

Comments
 (0)