web: add Docker support for web
This commit is contained in:
parent
95a7e5e821
commit
6cd36e2c5e
@ -1,6 +1,8 @@
|
|||||||
FROM mcr.microsoft.com/dotnet/core/sdk:2.2-alpine
|
FROM mcr.microsoft.com/dotnet/core/sdk:2.2-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY PluralKit/ PluralKit.csproj /app/
|
COPY PluralKit.Bot /app/PluralKit.Bot
|
||||||
|
COPY PluralKit.Core /app/PluralKit.Core
|
||||||
|
COPY PluralKit.Web /app/PluralKit.Web
|
||||||
|
COPY PluralKit.sln /app
|
||||||
RUN dotnet build
|
RUN dotnet build
|
||||||
ENTRYPOINT ["dotnet", "run"]
|
|
@ -2,10 +2,18 @@ version: "3"
|
|||||||
services:
|
services:
|
||||||
bot:
|
bot:
|
||||||
build: .
|
build: .
|
||||||
|
entrypoint: ["dotnet", "run", "--project", "PluralKit.Bot"]
|
||||||
environment:
|
environment:
|
||||||
- PK_TOKEN
|
- "PluralKit:Bot:Token"
|
||||||
- "PK_DATABASE_URI=Host=db;Username=postgres;Password=postgres;Database=postgres"
|
- "PluralKit:Database=Host=db;Username=postgres;Password=postgres;Database=postgres"
|
||||||
links:
|
links:
|
||||||
- db
|
- db
|
||||||
|
web:
|
||||||
|
build: .
|
||||||
|
entrypoint: ["dotnet", "run", "--project", "PluralKit.Web"]
|
||||||
|
environment:
|
||||||
|
- "PluralKit:Database=Host=db;Username=postgres;Password=postgres;Database=postgres"
|
||||||
|
links:
|
||||||
|
- db
|
||||||
db:
|
db:
|
||||||
image: postgres:alpine
|
image: postgres:alpine
|
Loading…
Reference in New Issue
Block a user