-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e79bf86
commit 0629ac2
Showing
3 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,5 +16,3 @@ node_modules | |
|
||
# User generated docker files (Root of the project only) | ||
/db | ||
/docker-compose.yml | ||
/Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM node:latest | ||
WORKDIR /usr/src/app | ||
COPY package*.json ./ | ||
COPY . . | ||
RUN npm install | ||
RUN cp .env.example .env | ||
RUN chmod u+x ./start.sh | ||
CMD ["./start.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
version: "3" | ||
services: | ||
dispenser-fork: | ||
image: dispenser-fork | ||
build: . | ||
container_name: dispenser-fork | ||
restart: unless-stopped | ||
environment: | ||
#DO NOT CHANGE THE HOST | ||
POSTGRES_HOST: db | ||
#DO NOT CHANGE THIS UNLESS YOU KNOW WHAT YOU ARE DOING | ||
POSTGRES_USER: dispenser-fork | ||
#CHANGE THE PASSWORD TO SOMETHING MORE SECURE (RECOMMENDED) | ||
POSTGRES_PASSWORD: postgres | ||
#DO NOT CHANGE THIS UNLESS YOU KNOW WHAT YOU ARE DOING!! | ||
POSTGRES_DB: dispenser-fork | ||
#THIS SHOULDN'T NEED TO CHANGE | ||
DATABASE_URL: postgres://dispenser-fork:postgres@db:5432/dispenser-fork | ||
#### | ||
#ANYTHING BELOW THIS NEEDS TO BE EDITED | ||
#The discord bot's token (REQUIRED) | ||
TOKEN: token | ||
#The Bot ID for slash command deployment (REQUIRED) | ||
CLIENT_ID: clientID | ||
#The Server ID for quick deployment (Not required but recommended for quick deployment, delete line to disable) | ||
GUILD_ID: guildID | ||
# The ID of the Bot owner (NOT REQUIRED, delete line to disable) | ||
OWNER_ID: ownerID | ||
# Cooldown time in ms (set to 0 to disable) | ||
COOLDOWN_TIME: 2000 | ||
depends_on: | ||
- db | ||
db: | ||
image: postgres:latest | ||
container_name: dispenser-fork-db | ||
restart: unless-stopped | ||
environment: | ||
POSTGRES_USER: dispenser-fork | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_DB: dispenser-fork | ||
volumes: | ||
- ./db:/var/lib/postgresql/data | ||
networks: | ||
default: | ||
external: false | ||
name: dispenser-fork-network |