added docker compose yaml, modified dockerfile
All checks were successful
build / docker (push) Successful in 12m25s

This commit is contained in:
Wyatt J. Miller 2024-11-10 15:25:45 -05:00
parent d865849426
commit 1495de3f63
2 changed files with 20 additions and 0 deletions

View File

@ -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

19
docker-compose.yml Normal file
View File

@ -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