diff --git a/Dockerfile b/Dockerfile index 00f9937..0286f6f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,4 +6,6 @@ RUN pip install --no-cache-dir -r requirements.txt COPY . . +VOLUME ["/etl/logs"] + CMD ["python3", "./src/load.py"] \ No newline at end of file diff --git a/compose.yaml b/compose.yaml index 2b9fbc4..91bfe12 100644 --- a/compose.yaml +++ b/compose.yaml @@ -9,7 +9,7 @@ services: expose: - "5432" ports: - - "8081:5432" + - "5432:5432" shm_size: 128mb environment: - POSTGRES_PASSWORD=${DB_PASSWORD} @@ -36,9 +36,7 @@ services: command: "python3 ./src/orchestrator.py" restart: no volumes: - - postgres_data:/var/lib/etl - pre_stop: - - command: docker cp CONTAINER:/var/lib/etl/lms-etl.log /tmp/app_logs + - /tmp/etl/logs/:/var/lib/etl/logs networks: backend: