Skip to content

Commit 118c47f

Browse files
committed
ci: enhance docker-compose.yml to include guides tracker configuration and persist data
1 parent a79b76f commit 118c47f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
cat > .env.local << EOF
4343
DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }}
4444
CLIENT_ID=${{ secrets.CLIENT_ID }}
45+
GUIDES_CHANNEL_ID=${{ secrets.GUIDES_CHANNEL_ID }}
4546
EOF
4647
4748
# Stop any existing containers

docker-compose.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ services:
1010
restart: unless-stopped
1111
env_file:
1212
- .env.local
13+
environment:
14+
- GUIDES_TRACKER_PATH=/app/data/guides-tracker.json
15+
volumes:
16+
# Persist guides tracker data
17+
- guides-data:/app/data
1318
profiles:
1419
- prod
1520

@@ -24,6 +29,8 @@ services:
2429
restart: unless-stopped
2530
env_file:
2631
- .env.local
32+
environment:
33+
- GUIDES_TRACKER_PATH=/app/data/guides-tracker.json
2734
volumes:
2835
# Mount source code for hot reload
2936
- ./src:/app/src:ro
@@ -33,6 +40,11 @@ services:
3340
# Mount package files (in case dependencies change)
3441
- ./package.json:/app/package.json:ro
3542
- ./pnpm-lock.yaml:/app/pnpm-lock.yaml:ro
43+
# Persist guides tracker data
44+
- guides-data:/app/data
3645
profiles:
3746
- dev
3847

48+
volumes:
49+
guides-data:
50+
driver: local

0 commit comments

Comments
 (0)