-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
113 lines (111 loc) · 2.61 KB
/
docker-compose.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
services:
bot:
build: .
container_name: bot
depends_on:
db:
condition: service_healthy
restart: true
lavalink:
condition: service_healthy
restart: true
restart: on-failure:3
env_file: .env
environment:
# - DBURL=postgresql://fridaylocal:fridaylocal@db:5432/fridaylocal
- LAVALINKUSHOST=lavalink
- LAVALINKUSPORT=2333
volumes:
- .:/usr/src/app
- /home/certs/:/home/certs/
ports:
- 5678:5678
# - 443:443
- 5000:5000
networks:
- fridaybot
deploy:
resources:
limits:
cpus: '0.9'
memory: 2000M
lavalink:
image: ghcr.io/lavalink-devs/lavalink:4
container_name: lavalink
restart: unless-stopped
env_file: .env
environment:
- _JAVA_OPTIONS=-Xmx500M
- LAVALINK_SERVER_PASSWORD=${LAVALINK_SERVER_PASSWORD}
- SERVER_PORT=2333
expose:
- 2333
networks:
- fridaybot
volumes:
- ./lavalink.config.yml:/opt/Lavalink/application.yml
healthcheck:
test: 'curl -f -H "Authorization: $$LAVALINK_SERVER_PASSWORD" http://lavalink:2333/version || exit 1'
timeout: 4s
retries: 10
start_period: 5s
# llama:
# image: dhiltgen/ollama:0.1.21-rc2
# container_name: llama
# # expose:
# # - 11434/tcp
# ports:
# - 11434:11434/tcp
# networks:
# - main
# volumes:
# - ./ollama:/root/.ollama
# healthcheck:
# test: ollama --version || exit 1
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# device_ids: ['all']
# capabilities: [gpu]
db:
image: postgres:15.1
restart: unless-stopped
container_name: db
env_file: .env
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- SERVER_PORT=5432
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U $$POSTGRES_USER']
interval: 5s
timeout: 5s
retries: 5
expose:
- 5432
networks:
- fridaybot
volumes:
- db:/var/lib/postgresql/data
- ./migrations:/docker-entrypoint-initdb.d
# portainer:
# image: portainer/portainer-ce:latest
# restart: unless-stopped
# security_opt:
# - no-new-privileges:true
# ports:
# - 9000:9000
# - 9443:9443
# volumes:
# - portainer:/data
# - /var/run/docker.sock:/var/run/docker.sock
# # - pgadmin:/var/run/docker.sock
volumes:
db:
# portainer:
networks:
fridaybot:
name: fridaybot