From 5f9d1cd16accce00c83a1df4a47d5ca179dd17cc Mon Sep 17 00:00:00 2001 From: Ske Date: Wed, 10 Jul 2019 12:37:47 +0200 Subject: [PATCH] Add API container to Composefile --- docker-compose.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 263ea55d..3e95f486 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,6 +9,7 @@ services: - "./pluralkit.conf:/app/pluralkit.conf:ro" links: - db + restart: always web: build: . entrypoint: ["dotnet", "run", "--project", "PluralKit.Web"] @@ -18,5 +19,17 @@ services: - db ports: - 2837:80 + restart: always + api: + build: . + entrypoint: ["dotnet", "run", "--project", "PluralKit.API"] + environment: + - "PluralKit:Database=Host=db;Username=postgres;Password=postgres;Database=postgres" + links: + - db + ports: + - 2838:80 + restart: always db: - image: postgres:alpine \ No newline at end of file + image: postgres:alpine + restart: always \ No newline at end of file