Compare commits

...

4 Commits

Author SHA1 Message Date
DutchEllie 6a1ff78ad0
Changed step name
continuous-integration/drone/push Build is passing Details
2022-04-09 17:22:36 +02:00
DutchEllie eb1a5f23d6
changed images 2022-04-09 17:21:25 +02:00
DutchEllie 0c591cbe2f
Fixed docker-compose 2022-04-09 17:20:36 +02:00
DutchEllie b45f3cfc93
Edited docker-compose 2022-04-09 17:19:08 +02:00
2 changed files with 49 additions and 34 deletions

16
.drone.yml Normal file
View File

@ -0,0 +1,16 @@
kind: pipeline
type: kubernetes
name: pepebot_build
steps:
- name: build-main
image: plugins/docker
settings:
registry: dutchellie.nl
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: dutchellie.nl/dutchellie/pepebot
tags:
- latest

View File

@ -1,37 +1,36 @@
version: "3.7"
services:
app:
container_name: pepebot_server
image: dutchellie/pepebot
restart: always
depends_on:
- db
environment:
- DB_USER=
- DB_PASS=
- DISCORD_TOKEN=
- RATE_LIMIT=
- TIME_LIMIT=
- PEPE_SERVER=
db:
container_name: pepebot_database
image: mysql:8.0
restart: always
environment:
MYSQL_ROOT_PASSWORD:
MYSQL_DATABASE:
MYSQL_USER:
MYSQL_PASSWORD:
volumes:
- pepe_db_data:/var/lib/mysql
pepe_service:
container_name: pepebot_service
image: dutchellie/pepebot_service:latest
restart: always
environment:
- PEPE_DIR=/pepe/1.00
volumes:
- /your/pepe/folder:/pepe #edit this
app:
container_name: pepebot_server
image: dutchellie.nl/dutchellie/pepebot
restart: always
depends_on:
- db
environment:
- DB_USER=changemeusername
- DB_PASS=changemepassword
- DISCORD_TOKEN=<discord token>
- RATE_LIMIT=2 # 2 Actions per TIME_LIMIT
- TIME_LIMIT=5 # Per second
- PEPE_SERVER=pepe_service:4000
db:
container_name: pepebot_database
image: mysql:8.0
restart: always
environment:
MYSQL_ROOT_PASSWORD: changeme
MYSQL_DATABASE: pepebot
MYSQL_USER: changemeusername
MYSQL_PASSWORD: changemepassword
volumes:
- pepe_db_data:/var/lib/mysql
pepe_service:
container_name: pepebot_service
image: dutchellie.nl/dutchellie/pepebot_service:latest
restart: always
environment:
- PEPE_DIR=/pepe/1.00
volumes:
- /your/pepe/folder:/pepe #edit this
volumes:
pepe_db_data: {}
pepe_db_data: {}