Dokploy

Nginx

Nginx is an High performance web server

Nginx logo

Configuration

version: "3.8"
services:
  nginx:
    image: nginx:latest
    restart: unless-stopped
    ports:
      - 80
      - 443
    volumes:
      - nginx-config:/etc/nginx
      - nginx-html:/usr/share/nginx/html
volumes:
  nginx-config: {}
  nginx-html: {}
[variables]
main_domain = "${domain}"

[config]
env = {}
mounts = []

[[config.domains]]
serviceName = "nginx"
port = 80
host = "${main_domain}"

Base64

To import this template in Dokploy: create a Compose service → AdvancedBase64 import and paste the content below:

ewogICJjb21wb3NlIjogInZlcnNpb246IFwiMy44XCJcbnNlcnZpY2VzOlxuICBuZ2lueDpcbiAgICBpbWFnZTogbmdpbng6bGF0ZXN0XG4gICAgcmVzdGFydDogdW5sZXNzLXN0b3BwZWRcbiAgICBwb3J0czpcbiAgICAgIC0gODBcbiAgICAgIC0gNDQzXG4gICAgdm9sdW1lczpcbiAgICAgIC0gbmdpbngtY29uZmlnOi9ldGMvbmdpbnhcbiAgICAgIC0gbmdpbngtaHRtbDovdXNyL3NoYXJlL25naW54L2h0bWxcbnZvbHVtZXM6XG4gIG5naW54LWNvbmZpZzoge31cbiAgbmdpbngtaHRtbDoge30iLAogICJjb25maWciOiAiW3ZhcmlhYmxlc11cbm1haW5fZG9tYWluID0gXCIke2RvbWFpbn1cIlxuXG5bY29uZmlnXVxuZW52ID0ge31cbm1vdW50cyA9IFtdXG5cbltbY29uZmlnLmRvbWFpbnNdXVxuc2VydmljZU5hbWUgPSBcIm5naW54XCJcbnBvcnQgPSA4MFxuaG9zdCA9IFwiJHttYWluX2RvbWFpbn1cIlxuIgp9

Tags

webserver


Version: latest

On this page