Commit f89e736
authored
chore: consolidate docker scripts into single docker-compose with profiles (#15974)
Replaces 18 docker scripts and 4 separate docker-compose files with 3
scripts and 1 unified compose file using Docker Compose profiles.
```
pnpm docker:start # Nuke volumes + start all services fresh
pnpm docker:stop # Stop everything
pnpm docker:test # Test database connections
```
The goal is one single command that covers 99% of cases: `pnpm
docker:start`. Running it gives you all services started clean, with no
leftover data from previous runs. No more looking through `package.json`
for the right `docker:mongodb:start` or `docker:postgres:restart:clean`
- just one command.
Docker Compose starts all services in parallel, so there's no
performance overhead compared to the old targeted commands.
<img width="1284" height="922" alt="screenshot 2026-03-16 at 17 11
44@2x"
src="https://github.com/user-attachments/assets/56c35547-5b82-496e-9200-cb43982c0dad"
/>
All services (PostgreSQL, MongoDB, mongot, MongoDB Atlas Local,
LocalStack, Azure Storage, GCS) now show grouped under a single
`payload-monorepo` project in Docker Desktop / Orbstack, as seen in the
screenshot.
All services are defined in `test/docker-compose.yml` with profiles
(`postgres`, `mongodb`, `mongodb-atlas`, `storage`, `all`). CI uses
individual profiles to start only what it needs.1 parent 5efc2ff commit f89e736
10 files changed
Lines changed: 161 additions & 227 deletions
File tree
- .github/actions/start-database
- packages/storage-s3
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | | - | |
146 | | - | |
147 | | - | |
| 145 | + | |
148 | 146 | | |
149 | 147 | | |
150 | | - | |
151 | | - | |
152 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
153 | 151 | | |
154 | 152 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
| 153 | + | |
164 | 154 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
| 155 | + | |
174 | 156 | | |
175 | | - | |
| 157 | + | |
176 | 158 | | |
177 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
178 | 164 | | |
179 | | - | |
| 165 | + | |
180 | 166 | | |
181 | 167 | | |
182 | 168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
103 | 88 | | |
104 | 89 | | |
105 | 90 | | |
| |||
This file was deleted.
Lines changed: 0 additions & 35 deletions
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments