diff --git a/.deploy/docker-compose.yml b/.deploy/docker-compose.yml index b87c946..b400ee6 100644 --- a/.deploy/docker-compose.yml +++ b/.deploy/docker-compose.yml @@ -1,12 +1,11 @@ version: "3.9" services: app: - image: ghcr.io/${IMAGE_REPO}:${RELEASE_VERSION} - restart: always - network_mode: bridge - ports: - - "8080" - container_name: ${APP_NAME}_app + image: ghcr.io/${IMAGE_REPO}:${RELEASE_VERSION} + restart: always + ports: + - "8080" + container_name: ${APP_NAME}_app environment: WS_HOST: ws://${HOST_DOMAIN} WS_PORT: 80 @@ -18,3 +17,8 @@ services: LANG: "en_US.UTF-8" volumes: - ./App_Data:/app/App_Data + +networks: + default: + external: true + name: nginx diff --git a/.deploy/nginx-proxy-compose.yml b/.deploy/nginx-proxy-compose.yml index a317d8c..14a709c 100644 --- a/.deploy/nginx-proxy-compose.yml +++ b/.deploy/nginx-proxy-compose.yml @@ -6,7 +6,8 @@ services: container_name: nginx-proxy restart: always ports: - - "8080" + - "80:80" + - "443:443" volumes: - conf:/etc/nginx/conf.d - vhost:/etc/nginx/vhost.d @@ -24,9 +25,7 @@ services: depends_on: - "nginx-proxy" environment: - DEFAULT_EMAIL: you@example.com - VIRTUAL_HOST: ${HOST_DOMAIN} - VIRTUAL_PORT: 8080 # New default ASP.NET port -> https://learn.microsoft.com/en-us/dotnet/core/compatibility/containers/8.0/aspnet-port + - DEFAULT_EMAIL=you@example.com volumes: - certs:/etc/nginx/certs:rw - acme:/etc/acme.sh