mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 14:57:54 +00:00
Optimize Docker build files
This commit is contained in:
parent
5728f94e00
commit
1604500f2a
3 changed files with 33 additions and 13 deletions
|
|
@ -1,8 +1,9 @@
|
|||
version: "3"
|
||||
services:
|
||||
bot:
|
||||
build: .
|
||||
entrypoint: ["dotnet", "run", "--project", "PluralKit.Bot"]
|
||||
image: pluralkit # This image is reused in the other containers due to the
|
||||
build: . # build instruction right here
|
||||
command: ["PluralKit.Bot.dll"]
|
||||
environment:
|
||||
- "PluralKit:Database=Host=db;Username=postgres;Password=postgres;Database=postgres;Maximum Pool Size=1000"
|
||||
- "PluralKit:InfluxUrl=http://influx:8086"
|
||||
|
|
@ -16,8 +17,8 @@ services:
|
|||
- influx
|
||||
restart: always
|
||||
web:
|
||||
build: .
|
||||
entrypoint: ["dotnet", "run", "--project", "PluralKit.Web"]
|
||||
image: pluralkit
|
||||
command: ["PluralKit.Web.dll"]
|
||||
environment:
|
||||
- "PluralKit:Database=Host=db;Username=postgres;Password=postgres;Database=postgres;Maximum Pool Size=1000"
|
||||
links:
|
||||
|
|
@ -26,8 +27,8 @@ services:
|
|||
- 2837:5000
|
||||
restart: always
|
||||
api:
|
||||
build: .
|
||||
entrypoint: ["dotnet", "run", "--project", "PluralKit.API"]
|
||||
image: pluralkit
|
||||
command: ["PluralKit.API.dll"]
|
||||
environment:
|
||||
- "PluralKit:Database=Host=db;Username=postgres;Password=postgres;Database=postgres;Maximum Pool Size=1000"
|
||||
links:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue