added docker compose yaml, modified dockerfile

This commit is contained in:
wymiller committed 2024-11-10 15:25:45 -05:00
1 parent d865849426
commit 1495de3f63
2 files changed
+20

No files matched your search

+1
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
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