-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.migration.yml
More file actions
38 lines (36 loc) · 911 Bytes
/
docker-compose.migration.yml
File metadata and controls
38 lines (36 loc) · 911 Bytes
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
services:
# Step 1: Update SQLite to latest migrations
pulsarr-migrate-sqlite:
image: lakker/pulsarr:latest
container_name: pulsarr-migrate-sqlite
volumes:
- ./data:/app/data
env_file:
- .env
profiles:
- migration
command: bun run migrate
# Step 2: Setup PostgreSQL schema
pulsarr-migrate-postgres-setup:
image: lakker/pulsarr:latest
container_name: pulsarr-migrate-postgres-setup
volumes:
- ./data:/app/data
env_file:
- .env
profiles:
- migration
command: bun run migrate:postgres-setup
# Step 3: Migrate data from SQLite to PostgreSQL
pulsarr-migrate-data:
image: lakker/pulsarr:latest
container_name: pulsarr-migrate-data
volumes:
- ./data:/app/data
env_file:
- .env
profiles:
- migration
stdin_open: true
tty: true
command: bun run migrate:sqlite-to-postgres