added docker compose yaml, modified dockerfile
This commit is contained in:
		@@ -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
									
								
							
							
						
						
									
										19
									
								
								docker-compose.yml
									
									
									
									
									
										Normal 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
 | 
			
		||||
		Reference in New Issue
	
	Block a user