@@ -0,0 +1,15 @@
+FROM ruby:2.6.3-alpine
+
+RUN apk update && \
+ apk add --no-cache build-base git postgresql-dev imagemagick
+RUN apk add --no-cache imagemagick-dev=6.9.6.8-r1 --repository http://dl-3.alpinelinux.org/alpine/v3.5/main/
+RUN mkdir /app
+WORKDIR /app
+COPY Gemfile Gemfile.lock /app/
+RUN bundle install
+COPY . /app
+CMD ["bundle", "exec", "ruby", "bot.rb"]
@@ -0,0 +1,30 @@
+version: "3.7"
+services:
+ bot:
+ build: .
+ depends_on:
+ - db
+ environment:
+ - POSTGRES_DB
+ - POSTGRES_HOST=db
+ - POSTGRES_PASSWORD
+ - POSTGRES_PORT=6543
+ - POSTGRES_USER
+ - DISCORD_CLIENT_ID
+ - DISCORD_SECRET
+ - DISCORD_BOT_TOKEN
+ db:
+ image: postgres:11.2-alpine
+ ports:
+ - ${DB_HOST_PORT}:6543
+ volumes:
+ - postgres-persisted-volume:/var/lib/postgresql/data
+volumes:
+ postgres-persisted-volume: