forked from esmBot/esmBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (70 loc) · 1.54 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
version: '3.0'
services:
bot:
build:
context: .
dockerfile: Dockerfile.bot
image: esmbot
restart: unless-stopped
volumes:
- ./logs:/home/esmBot/.internal/logs
- ./bot-help:/home/esmBot/help
- ./bot-temp:/home/esmBot/temp
- ./servers.json:/home/esmBot/.internal/servers.json
env_file:
- .env
environment:
OUTPUT: /home/esmBot/help/help.md
TEMPDIR: /home/esmBot/temp
links:
- lavalink
depends_on:
- lavalink
- postgres
networks:
esmbot:
ipv4_address: 172.20.0.2
lavalink:
container_name: lavalink
image: fredboat/lavalink:dev
restart: unless-stopped
volumes:
- ./application.yml:/opt/Lavalink/application.yml
- ./assets:/opt/Lavalink/assets
networks:
esmbot:
ipv4_address: 172.20.0.3
postgres:
container_name: postgres
image: postgres:13-alpine
restart: unless-stopped
volumes:
- pg-data:/var/lib/postgresql/data
- ./utils/psqlinit.sh:/docker-entrypoint-initdb.d/psqlinit.sh
environment:
POSTGRES_PASSWORD: verycoolpass100
POSTGRES_USER: esmbot
POSTGRES_DB: esmbot
networks:
esmbot:
ipv4_address: 172.20.0.4
adminer:
image: adminer
restart: unless-stopped
depends_on:
- postgres
ports:
- 8888:8080
networks:
esmbot:
ipv4_address: 172.20.0.5
volumes:
bot-help:
bot-temp:
pg-data:
networks:
esmbot:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/24