match compose.yml with the instructions in the docs

This commit is contained in:
FrenchGithubUser
2025-09-02 11:37:28 +02:00
parent 1366b7b7a7
commit 0166727d01
4 changed files with 8 additions and 5 deletions

View File

@@ -48,7 +48,7 @@ async fn get_tmdb_movie_data(client: &Client<ReqwestClient>, id: u64) -> Result<
.collect(),
description: tmdb_movie.inner.overview,
original_language: Some(
Language::from_str(&tmdb_movie.inner.original_language).unwrap_or(Language::Other),
Language::from_str(&tmdb_movie.inner.original_language.name).unwrap_or(Language::Other),
),
original_release_date: tmdb_movie
.inner

View File

@@ -1,2 +1,2 @@
# Connection string for the database.
DATABASE_URL=postgres://postgres:password@localhost:5432/arcadia
DATABASE_URL=postgresql://postgres:password@localhost:5432/arcadia

View File

@@ -18,6 +18,7 @@ services:
- 4321:5432
env_file:
- backend/api/.env.docker
- backend/api/.env
healthcheck:
test: ["CMD-SHELL", "pg_isready -U arcadia"]
interval: 5s
@@ -54,7 +55,7 @@ services:
command: redis-server --requirepass ${REDIS_PASSWORD}
backend:
container_name: arcadia_api
container_name: arcadia_backend
build:
context: ./
dockerfile: backend/api/Dockerfile
@@ -62,6 +63,7 @@ services:
- "8080:8080"
env_file:
- backend/api/.env.docker
- backend/api/.env
develop:
watch:
- path: ./backend/api
@@ -80,6 +82,7 @@ services:
- 5173:80
env_file:
- frontend/.env.docker
- frontend/.env
develop:
watch:
- path: ./frontend/dist

View File

@@ -27,7 +27,7 @@ Also don't forget to use `sudo` if you aren't in the `docker` group!
2. **Start all services**:
```bash
docker compose up --env-file backend/api/.env -d
docker compose --env-file backend/api/.env up -d
```
Note: the `--env-file` option is necessary as it will make the `REDIS_PASSWORD` environment variable available before the container is ran (and not only for the container itself, it is not the same as the compose attribute `env_file`).
@@ -54,7 +54,7 @@ If you prefer to start services individually:
### Redis Only
```bash
docker compose up --env-file backend/api/.env redis -d
docker compose --env-file backend/api/.env up redis -d
```
### Backend Api Only