From 1495de3f638931faa682aec2a160f084e3fbbc2b Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Sun, 10 Nov 2024 15:25:45 -0500 Subject: [PATCH] added docker compose yaml, modified dockerfile --- Dockerfile | 1 + docker-compose.yml | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile index 8d4bf52..d2eb7f2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,7 @@ FROM rust:1.75 as builder WORKDIR /usr/src/app COPY . . +RUN apt install openssl -y -q RUN cargo build --release # Test stage diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..a68297d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,19 @@ +version: "3" +services: + ballbot-discord-bot: + image: scm.wyattjmiller.com/wymiller/ballbot:latest + environment: + VIRTUAL_HOST: ballbot.discord.wyattjmiller.com + VIRTUAL_PORT: 80 + LETSENCRYPT_HOST: ballbot.discord.wyattjmiller.com + LETSENCRYPT_EMAIL: wjmiller2016@gmail.com + ## Fill these in when you deploy + # GUILD_ID: + # DISCORD_TOKEN: + expose: + - 80 + +networks: + default: + external: + name: nginx-proxy