-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.debug.yml
71 lines (66 loc) · 2 KB
/
docker-compose.debug.yml
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
services:
alexbot:
image: alexbot
volumes:
- ./:/alexbot
build: .
env_file:
- .env
environment:
DATABASE_URL: postgresql://alexbot:alexbot@db/alexbot
COBALT_URL: "http://cobalt-api:9000"
command:
[
"sh",
"-c",
"alembic upgrade head && pip install debugpy -t /tmp && python /tmp/debugpy --wait-for-client --listen 0.0.0.0:5678 bot.py"
]
ports:
- 5678:5678
depends_on:
- db
- cobalt-api
# firefox:
# image: selenium/standalone-firefox-debug
# shm_size: 2gb
# restart: unless-stopped
db:
image: postgres
restart: unless-stopped
environment:
POSTGRES_USER: alexbot
POSTGRES_PASSWORD: alexbot
POSTGRES_DB: alexbot
ports:
- 5432:5432
volumes:
- alex-bot-db:/var/lib/postgresql/data
cobalt-api:
image: ghcr.io/imputnet/cobalt:10
restart: unless-stopped
container_name: cobalt-api
init: true
ports:
- 9000:9000/tcp
# if you're using a reverse proxy, uncomment the next line and remove the one above (9000:9000/tcp):
#- 127.0.0.1:9000:9000
environment:
# replace https://api.cobalt.tools/ with your instance's target url in same format
API_URL: "http://cobalt-api:9000/"
# if you want to use cookies when fetching data from services, uncomment the next line and the lines under volume
# COOKIE_PATH: "/cookies.json"
# see docs/run-an-instance.md for more information
labels:
- com.centurylinklabs.watchtower.scope=cobalt
# if you want to use cookies when fetching data from services, uncomment volumes and next line
#volumes:
#- ./cookies.json:/cookies.json
# update the cobalt image automatically with watchtower
watchtower:
image: ghcr.io/containrrr/watchtower
restart: unless-stopped
command: --cleanup --scope cobalt --interval 900 --include-restarting
volumes:
- /var/run/docker.sock:/var/run/docker.sock
volumes:
alex-bot-db: