Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Commit

Permalink
Add docker-compose.yaml, move Dockerfile to sln root
Browse files Browse the repository at this point in the history
* Provides bindings for /plugins, /libraries, and /logs
* Binds environment variables with .env file
  • Loading branch information
oliverbooth committed Apr 7, 2022
1 parent 06bfd13 commit f77ceba
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions BrackeysBot.sln
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BrackeysBot", "BrackeysBot\
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BrackeysBot.API", "BrackeysBot.API\BrackeysBot.API\BrackeysBot.API.csproj", "{3EDCF557-4FEC-472D-8F6D-F9D1B27D8D3A}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{47F517B7-8238-4328-9644-8F36A15FEC9E}"
ProjectSection(SolutionItems) = preProject
Dockerfile = Dockerfile
docker-compose.yaml = docker-compose.yaml
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down
File renamed without changes.
18 changes: 18 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: '3.9'
services:
brackeysbot:
container_name: BrackeysBot
build: .
volumes:
- type: bind
source: ./plugins
target: /app/plugins
- type: bind
source: ./libraries
target: /app/libraries
- type: bind
source: ./logs
target: /app/logs
restart: always
env_file:
- .env

0 comments on commit f77ceba

Please sign in to comment.