mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-03 17:10:10 +08:00
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:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user