Skip to content

Commit

Permalink
Merge pull request #4 from korewaChino/main
Browse files Browse the repository at this point in the history
chore: Proper compose file for testing
  • Loading branch information
lleyton authored Mar 7, 2023
2 parents 24e0f09 + a3cf649 commit cdae2e4
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,31 @@ services:
- ./data:/data
environment:
- BOT_TOKEN=${BOT_TOKEN}
- DATABASE_URL=${DATABASE_URL}
- DATABASE_URL=${DATABASE_URL:-postgres://postgres:password@postgres:5432/raboneko}
- PRIMARY_GUILD_ID=${PRIMARY_GUILD_ID}
- ANNOUNCEMENTS_CHANNEL_ID=${ANNOUNCEMENTS_CHANNEL_ID}
- UPDATES_CHANNEL_ID=${UPDATES_CHANNEL_ID}
- GENERAL_CHANNEL_ID=${GENERAL_CHANNEL_ID}
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- REDIS_HOST=${REDIS_HOST:-redis}
- REDIS_PORT=${REDIS_PORT:-6379}
redis:
image: redis:latest
restart: always
command: redis-server --save 20 1 --loglevel warning
volumes:
- redis:/data

postgres:
image: postgres:latest
restart: always
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=postgres
- POSTGRES_DB=raboneko
volumes:
- postgres:/var/lib/postgresql/data

volumes:
redis:
driver: local
postgres:

0 comments on commit cdae2e4

Please sign in to comment.