-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (67 loc) · 1.51 KB
/
docker-compose.yml
File metadata and controls
72 lines (67 loc) · 1.51 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
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3.9"
services:
db:
image: postgres:16-alpine
container_name: app-pg
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: app
ports: ["5432:5432"]
volumes:
- pg_data:/var/lib/postgresql/data
- ./webview/packages/shared/src/db/migrations:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d app"]
interval: 5s
timeout: 3s
retries: 20
command: >
postgres
-c shared_buffers=64MB
-c max_connections=40
-c work_mem=8MB
-c maintenance_work_mem=64MB
-c effective_cache_size=256MB
-c synchronous_commit=off
restart: unless-stopped
api:
build:
context: ./ingestion
dockerfile: Dockerfile
secrets:
- local_env
container_name: app-api
platform: "linux/amd64"
env_file: .env
volumes:
- ./ingested_repos:/ingested_repos
ports: ["8000:8000"]
depends_on:
db:
condition: service_healthy
restart: unless-stopped
web:
build:
context: ./webview
dockerfile: Dockerfile
secrets:
- local_env
container_name: app-web
volumes:
- ./ingested_repos:/ingested_repos
environment:
NODE_ENV: production
depends_on:
db:
condition: service_healthy
api:
condition: service_started
ports: ["3000:3000"]
restart: unless-stopped
volumes:
pg_data:
ingested_repos:
secrets:
local_env:
file: ./.env