Skip to content

Commit

Permalink
Update config for TM to use a db
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Feb 21, 2024
1 parent cfaec17 commit 1aac460
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions compose/tasking-manager.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,33 @@
version: '3'
services:
######################################################
### Tasking Manager section
######################################################
tasking-manager-api:
tasking-manager-db:
image: mdillon/postgis:11
ports:
- '5432:5432'
# volumes:
# - ../data/tasking-manager-api-db:/db
env_file:
- ../envs/.env.tasking-manager-db
migration:
image: osmseed-tasking-manager-api:v1
build:
context: ../images/tasking-manager-api
dockerfile: Dockerfile
restart: on-failure
command: >
sh -c "python3 manage.py db upgrade"
env_file:
- ../envs/.env.tasking-manager
- ../envs/.env.tasking-manager-db
tasking-manager-api:
build:
context: ../images/tasking-manager-api
dockerfile: Dockerfile
image: osmseed-tasking-manager-api:v1
ports:
- '5000:5000'
volumes:
- ../data/tasking-manager-api-db:/db
- '5001:5000'
# volumes:
# - ../data/tasking-manager-api:/db
env_file:
- ../envs/.env.tasking-manager
- ../envs/.env.tasking-manager
- ../envs/.env.tasking-manager-db

0 comments on commit 1aac460

Please sign in to comment.