Skip to content

Commit ca76c65

Browse files
committed
fix: rename Dockerfile (case) + update etl compose
1 parent 82037df commit ca76c65

2 files changed

Lines changed: 10 additions & 28 deletions

File tree

File renamed without changes.

docker-compose.yml

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,20 @@
1-
services:
2-
db:
3-
image: postgres:16-alpine
4-
restart: unless-stopped
5-
environment:
6-
POSTGRES_DB: ${DB_NEWS:-news_db}
7-
POSTGRES_USER: ${DB_USER:-postgres}
8-
POSTGRES_PASSWORD: ${DB_PASSWORD:-postgres}
9-
ports:
10-
- "5432:5432"
11-
volumes:
12-
- postgres_data:/var/lib/postgresql/data
13-
healthcheck:
14-
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-postgres} -d ${DB_NEWS:-news_db}"]
15-
interval: 5s
16-
timeout: 5s
17-
retries: 10
18-
1+
services:
192
app:
203
build:
214
context: .
225
dockerfile: DockerFile
236
restart: unless-stopped
24-
depends_on:
25-
db:
26-
condition: service_healthy
277
env_file:
288
- .env
299
environment:
30-
DB_HOST: localhost
10+
DB_HOST: news-postgres
11+
DB_PORT: "5432"
12+
NEWS_DB: news_db
13+
DB_ADMIN_DB: postgres
3114
command: ["python", "main.py", "--worker", "--bootstrap", "--poll_interval", "3"]
15+
networks:
16+
- news-stack-net
3217

33-
volumes:
34-
postgres_data:
35-
36-
37-
38-
18+
networks:
19+
news-stack-net:
20+
external: true

0 commit comments

Comments
 (0)