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:
tty, detach
Maybe mispelled?
Compose ID: mh1qe6ws
2x Space
4x Space
6x Space
8x Space???
Volumes: Yes Please
Volumes: No Thanks
GO!
Docker Hub for era
version: '3' services: era: container_name: era_11 volumes: - '/opt/era_11/lib:/var/lib/era:rslave' - '/opt/era_11/a:/var/lib/era_files/a:rslave' - '/opt/era_11/era_globalshare:/var/lib/era_files/globalshare:rslave' - '/opt/era_11/local:/var/lib/era_files/local:rslave' - '/opt/era_11/era_recpath:/var/lib/era_files/recpath:rslave' - '/opt/era_11/rectemp:/var/lib/era_files/rectemp:rslave' - '/opt/era_11/syncroot:/var/lib/era_files/syncroot:rslave' - '/opt/era_11/log:/var/log/era:rslave' - '/etc/timezone:/etc/timezone:ro,rprivate' - '/opt/era_11/b:/var/lib/era_files/b:rslave' - '/opt/era_11/c:/var/lib/era_files/c:rslave' - '/opt/era_11/logstore:/var/lib/era_files/logstore:rslave' - '/opt/era_11/era_siteshare:/var/lib/era_files/siteshare:rslave' cap_add: - CAP_NET_ADMIN - CAP_NET_BIND_SERVICE - CAP_NET_RAW network_mode: host restart: unless-stopped environment: - SRVNAME=testsrv - PSK=123456 - 'SQLSTR=host:192.168.0.149,port:5451,login:platformpgadmin,pwd:Era_User_pwd,database:postgres' - GENDOMAIN=era.test - STARTTYPE=firstinit - SRVIP=192.168.0.149 image: 'era:v.1'
Raw
Try On Play-With-Docker!
WGET:
History
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