-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
112 lines (106 loc) · 3.58 KB
/
docker-compose.yml
File metadata and controls
112 lines (106 loc) · 3.58 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
services:
postgres:
image: postgres:16-alpine
container_name: patchwork-postgres
restart: unless-stopped
environment:
POSTGRES_DB: patchwork
POSTGRES_USER: patchwork
POSTGRES_PASSWORD: ${PATCHWORK_POSTGRES_PASSWORD:?Set PATCHWORK_POSTGRES_PASSWORD in .env}
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U patchwork -d patchwork']
interval: 5s
timeout: 3s
retries: 20
volumes:
- patchwork-postgres-data:/var/lib/postgresql/data
networks:
internal:
patchwork-api:
build:
context: .
dockerfile: Dockerfile
target: api-runtime
container_name: patchwork-api
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
NODE_ENV: production
LOG_LEVEL: ${LOG_LEVEL:-info}
ATPROTO_SERVICE_DID: ${ATPROTO_SERVICE_DID:-did:example:patchwork}
ATPROTO_PDS_URL: ${ATPROTO_PDS_URL:-https://bsky.social}
API_HOST: 0.0.0.0
API_PORT: 4000
API_PUBLIC_ORIGIN: ${PATCHWORK_PUBLIC_ORIGIN:-https://patchwork.subcult.tv}
API_DATA_SOURCE: ${API_DATA_SOURCE:-postgres}
API_DATABASE_URL: postgresql://patchwork:${PATCHWORK_POSTGRES_PASSWORD:?Set PATCHWORK_POSTGRES_PASSWORD in .env}@patchwork-postgres:5432/patchwork
networks:
internal:
web:
aliases:
- patchwork-api
- patchwork-stitch
patchwork-spool:
build:
context: .
dockerfile: Dockerfile
target: indexer-runtime
container_name: patchwork-spool
restart: unless-stopped
environment:
NODE_ENV: production
LOG_LEVEL: ${LOG_LEVEL:-info}
ATPROTO_SERVICE_DID: ${ATPROTO_SERVICE_DID:-did:example:patchwork}
ATPROTO_PDS_URL: ${ATPROTO_PDS_URL:-https://bsky.social}
INDEXER_PORT: 4100
INDEXER_FIREHOSE_URL: ${INDEXER_FIREHOSE_URL:-wss://bsky.network}
networks:
internal:
web:
aliases:
- patchwork-spool
- patchwork-quilt
patchwork-thimble:
build:
context: .
dockerfile: Dockerfile
target: moderation-runtime
container_name: patchwork-thimble
restart: unless-stopped
environment:
NODE_ENV: production
LOG_LEVEL: ${LOG_LEVEL:-info}
ATPROTO_SERVICE_DID: ${ATPROTO_SERVICE_DID:-did:example:patchwork}
ATPROTO_PDS_URL: ${ATPROTO_PDS_URL:-https://bsky.social}
MODERATION_PORT: 4200
MODERATION_WORKER_CONCURRENCY: ${MODERATION_WORKER_CONCURRENCY:-2}
networks:
internal:
web:
aliases:
- patchwork-thimble
patchwork-web:
build:
context: .
dockerfile: Dockerfile
target: web-runtime
args:
VITE_APP_NAME: Patchwork
VITE_API_BASE_URL: ${VITE_API_BASE_URL:-https://patchwork.subcult.tv/api}
container_name: patchwork-web
restart: unless-stopped
depends_on:
- patchwork-api
networks:
web:
aliases:
- patchwork-web
volumes:
patchwork-postgres-data:
networks:
internal:
driver: bridge
web:
external: true