-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (56 loc) · 1.52 KB
/
Copy pathdocker-compose.yml
File metadata and controls
59 lines (56 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_USER: pizzalogs
POSTGRES_PASSWORD: pizzalogs
POSTGRES_DB: pizzalogs
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U pizzalogs"]
interval: 5s
timeout: 3s
retries: 10
parser:
build:
context: .
dockerfile: parser/Dockerfile
restart: unless-stopped
ports:
- "8000:8000"
environment:
PORT: 8000
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health', timeout=3)"]
interval: 10s
timeout: 5s
retries: 5
web:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "3000:3000"
environment:
DATABASE_URL: postgresql://pizzalogs:pizzalogs@postgres:5432/pizzalogs?schema=public
PARSER_SERVICE_URL: http://parser:8000
UPLOAD_DIR: /app/uploads
ADMIN_SECRET: ${ADMIN_SECRET:?Set a random ADMIN_SECRET of at least 32 characters}
ADMIN_AUTH_URL: ${ADMIN_AUTH_URL:-http://localhost:3000}
ADMIN_COOKIE_SECURE: false
NODE_ENV: production
volumes:
- uploads_data:/app/uploads
depends_on:
postgres:
condition: service_healthy
parser:
condition: service_healthy
volumes:
postgres_data:
uploads_data: