diff --git a/.gitignore b/.gitignore index 80dba80..2f5cb03 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ /target -.env.local \ No newline at end of file +export.sh \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index d3064ae..a8dfbcd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,4 +13,4 @@ COPY .env.docker /.env ENV ROCKET_ADDRESS=0.0.0.0 ENV ROCKET_ENV=production EXPOSE 8000 -ENTRYPOINT diesel migration run --migration-dir /migrations && request-mirror \ No newline at end of file +ENTRYPOINT diesel migration run --database-url $DATABASE_URL --migration-dir /migrations && request-mirror \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index c564ed6..c934e54 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: image: postgres environment: - POSTGRES_USER=postgres - - POSTGRES_PASSWORD=password + - POSTGRES_PASSWORD=Password123 - POSTGRES_DB=request_mirror_db volumes: - db-data:/var/lib/postgresql/data @@ -21,7 +21,7 @@ services: ports: - 80:8000 environment: - - DATABASE_URL=postgres://postgres:password@postgres/request_mirror_db + - DATABASE_URL=postgres://postgres:Password123@postgres/request_mirror_db depends_on: postgres: condition: service_healthy