diff --git a/deploy.env b/deploy.env index 0853124c..e5302829 100644 --- a/deploy.env +++ b/deploy.env @@ -110,6 +110,11 @@ PORTAINER_PASSWORD=password1234 # Cloudflare tunnel token CLOUDFLARE_TUNNEL_TOKEN= +# NGINX +# Optional, change this if you want to use custom ports to expose AppFlowy +NGINX_PORT=80 +NGINX_TLS_PORT=443 + # If you are using a different postgres database, change the following values # GOTRUE_DATABASE_URL=postgres://supabase_auth_admin:root@:/$POSTGRES_DB # APPFLOWY_DATABASE_URL=postgres://POSTGRES_USER:$POSTGRES_PASSWORD@$POSTGRES_HOST:5432/$POSTGRES_DB diff --git a/docker-compose-ci.yml b/docker-compose-ci.yml index dc4afc2b..96c570e1 100644 --- a/docker-compose-ci.yml +++ b/docker-compose-ci.yml @@ -1,13 +1,12 @@ # Essential services for AppFlowy Cloud -version: '3' services: nginx: restart: on-failure image: nginx ports: - - 80:80 # Disable this if you are using TLS - - 443:443 + - ${NGINX_PORT:-80}:80 # Disable this if you are using TLS + - ${NGINX_TLS_PORT:-443}:443 volumes: - ./nginx/nginx.conf:/etc/nginx/nginx.conf - ./nginx/ssl/certificate.crt:/etc/nginx/ssl/certificate.crt diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml index 97c7fae4..0733600f 100644 --- a/docker-compose-dev.yml +++ b/docker-compose-dev.yml @@ -1,4 +1,3 @@ -version: '3' services: nginx: restart: on-failure diff --git a/docker-compose-extras.yml b/docker-compose-extras.yml index 6b46fe68..275a4a5d 100644 --- a/docker-compose-extras.yml +++ b/docker-compose-extras.yml @@ -1,6 +1,5 @@ # Non-essential additional services -version: '3' services: tunnel: image: cloudflare/cloudflared diff --git a/docker-compose.yml b/docker-compose.yml index ddc75c97..5fb8d001 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,13 +1,12 @@ # Essential services for AppFlowy Cloud -version: '3' services: nginx: restart: on-failure image: nginx ports: - - 80:80 # Disable this if you are using TLS - - 443:443 + - ${NGINX_PORT:-80}:80 # Disable this if you are using TLS + - ${NGINX_TLS_PORT:-443}:443 volumes: - ./nginx/nginx.conf:/etc/nginx/nginx.conf - ./nginx/ssl/certificate.crt:/etc/nginx/ssl/certificate.crt