mrmBot-Matrix/docker-compose.yml

77 lines
1.5 KiB
YAML
Raw Normal View History

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
2021-09-13 18:05:22 +00:00
- ./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
2021-03-18 16:19:08 +00:00
- 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
2021-03-18 16:19:08 +00:00
postgres:
container_name: postgres
image: postgres:13-alpine
restart: unless-stopped
volumes:
2021-03-18 16:19:08 +00:00
- 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
2021-03-18 16:19:08 +00:00
adminer:
image: adminer
restart: unless-stopped
depends_on:
2021-03-18 16:19:08 +00:00
- postgres
ports:
2021-03-18 16:19:08 +00:00
- 8888:8080
networks:
esmbot:
ipv4_address: 172.20.0.5
volumes:
bot-help:
bot-temp:
2021-03-18 16:19:08 +00:00
pg-data:
networks:
esmbot:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/24