+125
cmd/fakermaker/docker-compose.yaml
+125
cmd/fakermaker/docker-compose.yaml
···
1
+
version: '3'
2
+
volumes:
3
+
dbvol:
4
+
driver: local
5
+
services:
6
+
db:
7
+
image: postgres:14.3-alpine
8
+
restart: always
9
+
environment:
10
+
- POSTGRES_USER=bsky
11
+
- POSTGRES_PASSWORD=yksb
12
+
# intentionally *not* exposing default postgresql port to host (conflicts with other local dev DBs)
13
+
command: -p 6543
14
+
ports:
15
+
- '6543:6543'
16
+
expose:
17
+
- '6543'
18
+
volumes:
19
+
- dbvol:/var/lib/postgresql/docker
20
+
- ./docker-create-dev-dbs.sql:/docker-entrypoint-initdb.d/create-dev-dbs.sql
21
+
healthcheck:
22
+
test: ["CMD-SHELL", "pg_isready -p 6543 -U bsky"]
23
+
interval: 3s
24
+
timeout: 2s
25
+
retries: 3
26
+
27
+
plc:
28
+
image: ghcr.io/bluesky-social/did-method-plc:plc-79cda64f2e51f0017c75e86b63afe95b100273c2
29
+
ports:
30
+
- "2582:2582"
31
+
expose:
32
+
- "2582"
33
+
environment:
34
+
- ENV=dev
35
+
- DATABASE_URL=postgres://bsky:yksb@db:6543/plc_dev
36
+
- PORT=2582
37
+
- DEBUG_MODE=1
38
+
- LOG_ENABLED=true
39
+
- LOG_LEVEL=info
40
+
- LOG_DESTINATION=1
41
+
working_dir: /app/packages/server
42
+
command: yarn run start
43
+
links:
44
+
- db
45
+
depends_on:
46
+
db:
47
+
condition: service_healthy
48
+
49
+
pds-one:
50
+
image: ghcr.io/bluesky-social/atproto:pds-c18cb6a25d2d3bb7d1e8bc32f4c4aa617c5d73be
51
+
ports:
52
+
- "2583:2583"
53
+
expose:
54
+
- "2583"
55
+
environment:
56
+
- ENV=dev
57
+
- DB_POSTGRES_URL=postgres://bsky:yksb@db:6543/pds_dev
58
+
- AVAILABLE_USER_DOMAINS=.test,.dev.bsky.dev
59
+
- DID_PLC_URL=http://plc:2582
60
+
- PORT=2583
61
+
- DEBUG_MODE=1
62
+
- LOG_LEVEL=info
63
+
- LOG_ENABLED=true
64
+
- LOG_DESTINATION=1
65
+
working_dir: /app/packages/pds
66
+
command: yarn run start
67
+
links:
68
+
- db
69
+
- plc
70
+
depends_on:
71
+
db:
72
+
condition: service_healthy
73
+
plc:
74
+
condition: service_started
75
+
76
+
bgs:
77
+
# to build/run locally, uncomment this instead
78
+
#build: ../bigsky/
79
+
image: ghcr.io/bluesky-social/indigo:bigsky-8c8248dc2d2767532f545fc18c949608a6baf1df
80
+
ports:
81
+
- "2470:2470"
82
+
environment:
83
+
- ATP_PLC_HOST=http://plc:2582
84
+
- ATP_PDS_HOST=http://pds-one:2583
85
+
- GOLOG_LOG_LEVEL=info
86
+
links:
87
+
- db
88
+
- plc
89
+
- pds-one
90
+
depends_on:
91
+
db:
92
+
condition: service_healthy
93
+
plc:
94
+
condition: service_started
95
+
pds-one:
96
+
condition: service_started
97
+
98
+
appview:
99
+
image: ghcr.io/bluesky-social/atproto:bsky-af9f11fbde332dfebb8c79e52f009cfd13d08346
100
+
ports:
101
+
- "2584:2584"
102
+
expose:
103
+
- "2584"
104
+
environment:
105
+
- ENV=dev
106
+
- DB_POSTGRES_URL=postgres://bsky:yksb@db:6543/bsky_dev
107
+
- DID_PLC_URL=http://plc:2582
108
+
- PORT=2584
109
+
- DEBUG_MODE=1
110
+
- LOG_LEVEL=info
111
+
- LOG_ENABLED=true
112
+
- LOG_DESTINATION=1
113
+
working_dir: /app/packages/bsky
114
+
command: yarn run start
115
+
links:
116
+
- db
117
+
- plc
118
+
- bgs
119
+
depends_on:
120
+
db:
121
+
condition: service_healthy
122
+
plc:
123
+
condition: service_started
124
+
bgs:
125
+
condition: service_started