version: "3.7"
services:
reverseproxy:
build:
context: ./nginx
dockerfile: Dockerfile
ports:
- "80:80"
- "443:443"
restart: always
api:
depends_on:
- reverseproxy
environment:
ConnectionStrings__DefaultConnection: Server=Server;Database=Database_Name;User=Database_User;Password=Database_Password;Convert Zero Datetime=True;
JWT__DurationInMinutes: Jwt_Exp_Dur
ConnectionStrings__Hangfireconnection: Server=Server;Database=Database_Name;User=Database_User;Password=Database_Password;Convert Zero Datetime=True;Allow User Variables=True;
Hangfire__User: Hangfire_User
Hangfire__Password: Hangfire_Password
AppUrls__App: App_Url
image: Image_url
expose:
- "80"
restart: always