You guys should have told me that there was a bug when creating a file, its fixed now, sorry about that :)
Docker-Compose Generator
Your Docker Run Cmd :
Unchecked:
Public
Checked:
Private
show docker-compose.yml
Compose File
Public
×
Using PWD in volumes wont work in docker-compose, either use use " . " or full path on source
×
These options are not recognized:
runtime, detach
Maybe mispelled?
Compose ID: m3iiqjsn
2x Space
4x Space
6x Space
8x Space???
Volumes: Yes Please
Volumes: No Thanks
GO!
Docker Hub for linuxserver/nginx'
version: '3' services: 'nginx': container_name: '/nginx' volumes: - '/mnt/user/appdata/nginx:/config:rw' - '/mnt/user/appdata/Lets_Encrypt_Cache/:/etc/letsencrypt:rw' logging: driver: 'json-file' options: max-file: '1' max-size: '20m' restart: 'no' ports: - '0.0.0.0:443:443/tcp' - '0.0.0.0:1880:80/tcp' network_mode: 'bridge' hostname: '16559d8fb637' expose: - '443/tcp' - '80/tcp' environment: - 'HOST_OS=Unraid' - 'HOST_HOSTNAME=Hestia' - 'HOST_CONTAINERNAME=nginx' - 'PUID=99' - 'PGID=100' - 'TZ=Europe/Berlin' - 'PATH=/lsiopy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' - 'PS1=$(whoami)@$(hostname):$(pwd)\\$ ' - 'HOME=/root' - 'TERM=xterm' - 'S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0' - 'S6_VERBOSITY=1' - 'S6_STAGE2_HOOK=/docker-mods' - 'VIRTUAL_ENV=/lsiopy' - 'LSIO_FIRST_PARTY=true' labels: - build_version'='Linuxserver.io version:- 1.26.2-r0-ls297 Build-date:- 2024-11-14T04:28:27+00:00' - 'maintainer'='nemchik' - net.unraid.docker.icon'='https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/nginx-icon.png' - net.unraid.docker.managed'='dockerman' - net.unraid.docker.webui'='http://[IP]:[PORT:80]/' - org.opencontainers.image.authors'='linuxserver.io' - org.opencontainers.image.created'='2024-11-14T04:28:27+00:00' - org.opencontainers.image.description'='[Nginx](https://nginx.org/) is a simple webserver with php support. The config files reside in for easy user customization.' - org.opencontainers.image.documentation'='https://docs.linuxserver.io/images/docker-nginx' - org.opencontainers.image.licenses'='GPL-3.0-only' - org.opencontainers.image.ref.name'='ff5896854a7153862b2f74992b317452702e0760' - org.opencontainers.image.revision'='ff5896854a7153862b2f74992b317452702e0760' - org.opencontainers.image.source'='https://github.com/linuxserver/docker-nginx' - org.opencontainers.image.title'='Nginx' - org.opencontainers.image.url'='https://github.com/linuxserver/docker-nginx/packages' - org.opencontainers.image.vendor'='linuxserver.io' - org.opencontainers.image.version'='1.26.2-r0-ls297' entrypoint: - '/init' image: 'linuxserver/nginx':latest' command: \
Raw
Try On Play-With-Docker!
WGET:
History
lwvny4by
,
m8oyxjm7
,
lyj1n5cr
,
m2ifdkmz
,
lt8jvk73
,
m9gtbukv
,
lv1qyz9j
,
m6g1t8e4
,
lyk6qzth
,
lw717ykl
,
ltnoynza
,
m05uysp1
,
lyf2x1zm
,
mafbbxrz
,
ltabemne
,
m6kvg6ui
Examples
PHP+Apache
,
MariaDB
,
Python
,
Postgres
,
Redis
,
Jenkins
Traefik
Docker Inspect To Docker Run
Did you forget your docker run command to a running container? This will inspect a running container and provide you with the "docker run" command
Run This Command On Your Host:
docker inspect --format "$(curl -s https://run.docker-compose.net)" YOUR-CONTAINER-ID/NAME
Offline Version:
Open:
https://run.docker-compose.net
and save the content as run.tpl, and transfer it to your host, then run:
docker inspect --format "$(cat /location/of/run.tpl)" YOUR-CONTAINER-ID/NAME