2023-02-15 23:04:43 +02:00
|
|
|
version: "3.9"
|
|
|
|
|
|
|
|
services:
|
|
|
|
mysql:
|
|
|
|
image: mysql:8
|
|
|
|
restart: unless-stopped
|
|
|
|
hostname: mysql
|
|
|
|
networks:
|
|
|
|
- discord-tickets
|
2023-05-31 15:33:55 +03:00
|
|
|
volumes:
|
2023-02-15 23:04:43 +02:00
|
|
|
- tickets-mysql:/var/lib/mysql
|
|
|
|
environment:
|
|
|
|
MYSQL_DATABASE: tickets
|
|
|
|
MYSQL_PASSWORD: insecure # change this to a secure password
|
|
|
|
MYSQL_ROOT_PASSWORD: insecure # change this to a (different) secure password
|
|
|
|
MYSQL_USER: tickets
|
2023-05-31 15:33:55 +03:00
|
|
|
|
2023-02-15 23:04:43 +02:00
|
|
|
bot:
|
2023-02-24 00:37:48 +02:00
|
|
|
image: eartharoid/discord-tickets:4.0
|
2023-02-15 23:04:43 +02:00
|
|
|
depends_on:
|
|
|
|
- mysql
|
|
|
|
restart: unless-stopped
|
|
|
|
hostname: bot
|
|
|
|
networks:
|
|
|
|
- discord-tickets
|
|
|
|
ports:
|
2023-03-11 17:03:11 +02:00
|
|
|
- 8169:8169
|
2023-02-15 23:04:43 +02:00
|
|
|
volumes:
|
2023-06-17 01:42:00 +03:00
|
|
|
- tickets-bot:/home/container/user
|
2024-03-03 22:11:10 +02:00
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
2023-02-24 02:32:48 +02:00
|
|
|
tty: true
|
|
|
|
stdin_open: true
|
2023-02-15 23:04:43 +02:00
|
|
|
# Please refer to the documentation:
|
|
|
|
# https://discordtickets.app/self-hosting/configuration/#environment-variables
|
|
|
|
environment:
|
|
|
|
DB_CONNECTION_URL: mysql://tickets:insecure@mysql/tickets # change `insecure` to the MYSQL_PASSWORD you set above
|
|
|
|
DISCORD_SECRET: # required
|
|
|
|
DISCORD_TOKEN: # required
|
|
|
|
ENCRYPTION_KEY: # required
|
|
|
|
DB_PROVIDER: mysql
|
2023-03-11 17:03:11 +02:00
|
|
|
HTTP_EXTERNAL: http://127.0.0.1:8169 # change this to your server's external IP (or domain)
|
2023-02-15 23:04:43 +02:00
|
|
|
HTTP_HOST: 0.0.0.0
|
2024-01-21 05:06:40 +02:00
|
|
|
HTTP_INTERNAL:
|
2023-03-11 17:03:11 +02:00
|
|
|
HTTP_PORT: 8169
|
2023-05-31 15:33:55 +03:00
|
|
|
HTTP_TRUST_PROXY: "false" # set to true if you're using a reverse proxy
|
2024-01-21 05:06:40 +02:00
|
|
|
INVALIDATE_TOKENS:
|
2023-02-15 23:04:43 +02:00
|
|
|
OVERRIDE_ARCHIVE: null
|
2023-05-31 15:33:55 +03:00
|
|
|
PUBLIC_BOT: "false"
|
|
|
|
PUBLISH_COMMANDS: "false"
|
2023-02-24 00:40:14 +02:00
|
|
|
SUPER: 319467558166069248 # optionally add `,youruseridhere`
|
2023-02-15 23:04:43 +02:00
|
|
|
|
|
|
|
networks:
|
|
|
|
discord-tickets:
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
tickets-mysql:
|
|
|
|
tickets-bot:
|