This repository was archived by the owner on Jan 12, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (72 loc) · 1.66 KB
/
docker-compose.yml
File metadata and controls
77 lines (72 loc) · 1.66 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
services:
app:
build:
context: .
dockerfile: Dockerfile
container_name: github-issue-bot
restart: unless-stopped
working_dir: /var/www
volumes:
- ./:/var/www
- ./storage:/var/www/storage
ports:
- "8000:8000"
environment:
- APP_ENV=production
- APP_DEBUG=false
depends_on:
- database
networks:
- bot-network
command: php artisan serve --host=0.0.0.0 --port=8000
queue:
build:
context: .
dockerfile: Dockerfile
container_name: github-issue-bot-queue
restart: unless-stopped
working_dir: /var/www
volumes:
- ./:/var/www
- ./storage:/var/www/storage
depends_on:
- database
networks:
- bot-network
command: php artisan queue:work --tries=3 --timeout=600
database:
image: postgres:18
container_name: open-producer-bot-db
restart: "unless-stopped"
env_file:
- ./.env
environment:
POSTGRES_DB: ${DB_DATABASE:-github_bot}
POSTGRES_USER: ${DB_USERNAME:-bot_user}
POSTGRES_PASSWORD: ${DB_PASSWORD:-secret}
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init-multiple-dbs.sh:/docker-entrypoint-initdb.d/init-multiple-dbs.sh:ro
ports:
- "5432:5432"
networks:
- bot-network
# Optional: Redis for caching and queues
valkey:
image: valkey/valkey:latest
container_name: github-issue-bot-valkey
restart: unless-stopped
ports:
- "6379:6379"
networks:
- bot-network
volumes:
- valkey-data:/data
networks:
bot-network:
driver: bridge
volumes:
postgres_data:
driver: local
valkey-data:
driver: local