mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix(templates): DiscordTickets Naming
This commit is contained in:
@@ -1,14 +1,13 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
mysql:
|
tickets-postgres:
|
||||||
image: mysql:8
|
image: mysql:8
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
hostname: mysql
|
|
||||||
networks:
|
networks:
|
||||||
- dokploy-network
|
- dokploy-network
|
||||||
volumes:
|
volumes:
|
||||||
- tickets-mysql:/var/lib/mysql
|
- tickets-mysql-data:/var/lib/mysql
|
||||||
environment:
|
environment:
|
||||||
MYSQL_DATABASE: ${MYSQL_DATABASE}
|
MYSQL_DATABASE: ${MYSQL_DATABASE}
|
||||||
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
||||||
@@ -20,23 +19,22 @@ services:
|
|||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
|
||||||
bot:
|
tickets-app:
|
||||||
image: eartharoid/discord-tickets:4.0.21
|
image: eartharoid/discord-tickets:4.0.21
|
||||||
depends_on:
|
depends_on:
|
||||||
mysql:
|
tickets-postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
hostname: bot
|
|
||||||
networks:
|
networks:
|
||||||
- dokploy-network
|
- dokploy-network
|
||||||
volumes:
|
volumes:
|
||||||
- tickets-bot:/home/container/user
|
- tickets-app-data:/home/container/user
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
tty: true
|
tty: true
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
environment:
|
environment:
|
||||||
DB_CONNECTION_URL: mysql://${MYSQL_USER}:${MYSQL_PASSWORD}@mysql/${MYSQL_DATABASE}
|
DB_CONNECTION_URL: mysql://${MYSQL_USER}:${MYSQL_PASSWORD}@tickets-postgres/${MYSQL_DATABASE}
|
||||||
DISCORD_SECRET: ${DISCORD_SECRET}
|
DISCORD_SECRET: ${DISCORD_SECRET}
|
||||||
DISCORD_TOKEN: ${DISCORD_TOKEN}
|
DISCORD_TOKEN: ${DISCORD_TOKEN}
|
||||||
ENCRYPTION_KEY: ${ENCRYPTION_KEY}
|
ENCRYPTION_KEY: ${ENCRYPTION_KEY}
|
||||||
@@ -49,6 +47,10 @@ services:
|
|||||||
PUBLISH_COMMANDS: "true"
|
PUBLISH_COMMANDS: "true"
|
||||||
SUPER: ${SUPER_USERS}
|
SUPER: ${SUPER_USERS}
|
||||||
|
|
||||||
|
networks:
|
||||||
|
dokploy-network:
|
||||||
|
external: true
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
tickets-mysql:
|
tickets-mysql-data:
|
||||||
tickets-bot:
|
tickets-app-data:
|
||||||
@@ -13,7 +13,6 @@ export function generate(schema: Schema): Template {
|
|||||||
const mysqlUser = "tickets";
|
const mysqlUser = "tickets";
|
||||||
const mysqlDatabase = "tickets";
|
const mysqlDatabase = "tickets";
|
||||||
|
|
||||||
// Generate encryption key in the format they use
|
|
||||||
const encryptionKey = Array.from({ length: 48 }, () =>
|
const encryptionKey = Array.from({ length: 48 }, () =>
|
||||||
Math.floor(Math.random() * 16).toString(16),
|
Math.floor(Math.random() * 16).toString(16),
|
||||||
).join("");
|
).join("");
|
||||||
@@ -22,7 +21,7 @@ export function generate(schema: Schema): Template {
|
|||||||
{
|
{
|
||||||
host: mainDomain,
|
host: mainDomain,
|
||||||
port: 8169,
|
port: 8169,
|
||||||
serviceName: "bot",
|
serviceName: "tickets-app",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -33,7 +32,6 @@ export function generate(schema: Schema): Template {
|
|||||||
`MYSQL_ROOT_PASSWORD=${mysqlRootPassword}`,
|
`MYSQL_ROOT_PASSWORD=${mysqlRootPassword}`,
|
||||||
`MYSQL_USER=${mysqlUser}`,
|
`MYSQL_USER=${mysqlUser}`,
|
||||||
`ENCRYPTION_KEY=${encryptionKey}`,
|
`ENCRYPTION_KEY=${encryptionKey}`,
|
||||||
// These need to be set by the user through the UI
|
|
||||||
"# Follow the guide at: https://discordtickets.app/self-hosting/installation/docker/#creating-the-discord-application",
|
"# Follow the guide at: https://discordtickets.app/self-hosting/installation/docker/#creating-the-discord-application",
|
||||||
"DISCORD_SECRET=",
|
"DISCORD_SECRET=",
|
||||||
"DISCORD_TOKEN=",
|
"DISCORD_TOKEN=",
|
||||||
|
|||||||
Reference in New Issue
Block a user