
All checks were successful
Publish / build-and-push (push) Successful in 6m14s
Reasonably hacky, in that I introduce a facade to reuse the data format previously provided by the `csv` module, rather than using the `list[list[str]]` directly. Next I want to introduce something like Celery to continually refresh. Note that this will require changes to the deployment repo in order to provide the required secrets.
20 lines
739 B
YAML
20 lines
739 B
YAML
# This Docker Compose is intended for development, therefore it loads the code directories into the container.
|
|
services:
|
|
server:
|
|
build:
|
|
context: .
|
|
target: dev
|
|
environment:
|
|
SPREADSHEET_ID: "1ITgXXfq7KaNP8JTQMvoZJSbu7zPpCcfNio_aooULRfc"
|
|
PATH_TO_GOOGLE_SHEETS_CREDENTIALS: "./google_sheets_credentials.json"
|
|
volumes:
|
|
- type: bind
|
|
source: ./app/
|
|
# Yes, really - we're using `/app` as the WD within the container, but `uvicorn` requires an import path.
|
|
target: /app/app
|
|
- ./local-run-log-config.yaml:/app/local-run-log-config.yaml:delegated
|
|
- /Users/scubbo/Downloads/google_sheets_credentials.json:/app/google_sheets_credentials.json
|
|
ports:
|
|
- 8000:8000
|
|
|