Skip to content

Commit

Permalink
chore: add cache_from option to docker compose services
Browse files Browse the repository at this point in the history
  • Loading branch information
Adibov committed Nov 23, 2023
1 parent f63a79a commit d56e3f3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ version: '3.8'
services:
migrate_db:
image: aaissaut/aaiss:backend
build: ./backend
build:
context: ./backend
cache_from:
- aaissaut/aaiss:backend
command: ./manage.py migrate
volumes:
- ./backend/data:/backend-aaiss/data
Expand All @@ -13,7 +16,10 @@ services:
migrate_db:
condition: service_completed_successfully
image: aaissaut/aaiss:backend
build: ./backend
build:
context: ./backend
cache_from:
- aaissaut/aaiss:backend
command: gunicorn aaiss_backend.wsgi:application --bind 0.0.0.0:6446
volumes:
- ./backend/data:/backend-aaiss/data
Expand Down

0 comments on commit d56e3f3

Please sign in to comment.