Skip to content

Commit

Permalink
add valkey to docker-compose + env var to dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
guidopetri committed Nov 14, 2024
1 parent 238c57f commit 7d659e5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@ COPY src/ .
COPY tests/ ./tests

ENV PYTHONPATH /app
ENV VALKEY_CONNECTION_URL valkey://valkey:6379

ENTRYPOINT ["/usr/local/bin/luigi"]
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ x-chess-pipeline-service: &chess-pipeline-service
depends_on:
- luigi_server
- postgres
- valkey
volumes:
- chess_pipeline_logs:/logs
- .luigi_env:/app/luigi.cfg
Expand Down Expand Up @@ -44,6 +45,13 @@ services:
- ./db:/sql_scripts:ro
- ./db/initdb:/docker-entrypoint-initdb.d:ro

valkey:
image: valkey/valkey:alpine
container_name: valkey
restart: always
ports:
- "127.0.0.1:6379:6379"

volumes:
chess_pipeline_logs:
postgres_data:

0 comments on commit 7d659e5

Please sign in to comment.