Skip to content

Commit

Permalink
docker-compose: build backend image only once
Browse files Browse the repository at this point in the history
  • Loading branch information
fpletz committed Sep 18, 2024
1 parent 49a56f3 commit a9c17d8
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
services:
backend:
image: atciss-backend-local
build:
context: .
target: dev
Expand All @@ -14,9 +15,7 @@ services:
- ./alembic.ini:/code/alembic.ini

worker:
build:
context: .
target: dev
image: atciss-backend-local
ports:
- "9000:9000"
environment:
Expand All @@ -25,13 +24,17 @@ services:
volumes:
- ./atciss:/code/atciss
- ./contrib:/code/contrib
# ensure current atciss-backend-local image is used
depends_on:
- backend

scheduler:
build:
context: .
target: dev
image: atciss-backend-local
volumes:
- ./atciss:/code/atciss
# ensure current atciss-backend-local image is used
depends_on:
- backend

db:
environment:
Expand Down

0 comments on commit a9c17d8

Please sign in to comment.