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