Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No build service #3

Merged
merged 2 commits into from
Jul 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
version: '3'
services:
discord:
build:
context: .
dockerfile: Dockerfile
image: "rmwiesenberg/ode:latest"
restart: always
ports:
- "8889:8889"
environment:
- DISCORD_BOT_TOKEN=${DISCORD_BOT_TOKEN}
- DICTIONARY_API_KEY=${DICTIONARY_API_KEY}
Expand Down
10 changes: 5 additions & 5 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#! /bin/bash
git checkout main
git pull

docker-compose down
docker-compose pull

if [ -f .env ]; then
export $(grep -v '^#' .env | xargs)
fi
docker-compose up --build

docker-compose stop
docker-compose rm -f
docker-compose pull
docker-compose up