Merge pull request #249 from bitplane/docker-compose-context

Add context to compose file so it runs in older "docker-compose"
This commit is contained in:
Yannic Kilcher
2023-01-02 11:06:02 +01:00
committed by GitHub
2 changed files with 2 additions and 10 deletions
-10
View File
@@ -181,13 +181,3 @@ Upon making a release on GitHub, all docker images are automatically built and
pushed to ghcr.io. The docker images are tagged with the release version, and
the `latest` tag. Further, the ansible playbook in `ansible/dev.yaml` is run to
automatically deploy the built release to the dev machine.
### Problems and Solutions
- **I am on Ubuntu and getting
`ERROR: The Compose file is invalid because:Service backend has neither an image nor a build context specified. At least one must be provided.`**
Make sure you have an up-to-date version of docker installed, and also install
`docker-compose-plugin`. See
[here](https://github.com/LAION-AI/Open-Assistant/issues/208) for more
details.
+2
View File
@@ -87,6 +87,7 @@ services:
backend:
build:
dockerfile: docker/Dockerfile.backend
context: .
image: oasst-backend
environment:
- POSTGRES_HOST=db
@@ -103,6 +104,7 @@ services:
web:
build:
dockerfile: docker/Dockerfile.website
context: .
image: oasst-web
environment:
- DATABASE_URL=postgres://postgres:postgres@webdb/oasst_web