OnWorks favicon

docker-compose - Online in the Cloud

Run docker-compose in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command docker-compose that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



docker-compose - Define and run multi-container applications with Docker.


docker-compose [OPTIONS] [COMMAND] [ARGS]...


docker-compose allows you to define a multi-container application with all of its
dependencies in a single file, then spin the application up in a single command. The
application’s structure and configuration are held in a single place, which makes spinning
up applications simple and repeatable everywhere.


-f, --file FILE
Specify an alternate compose file (default: docker-compose.yml)

-p, --project-name NAME
Specify an alternate project name (default: directory name)

Show more output

-v, --version
Print version and exit


Build or rebuild services

Do not use cache when building the image.

Displays help and usage information on a command.

Forces running containers to stop by sending a SIGKILL signal.

SIGNAL to send to the container. Default signal is SIGKILL.

View output from containers.

Produce a monochrome output.

Print the public port for a port binding

Choose the 4th layer protocol, tcp or udp. Default is tcp.

Index of the container if there are multiple instances of a service. Default is 1.

List containers.

-q Only display IDs.

Pulls service images from Docker registry.

Allow insecure connections to the Docker registry.

Restart running containers.

-t, --timeout TIMEOUT
Specify a shutdown timeout in seconds. Default is 10.

Remove stopped service containers

-f, --force
Do not ask to confirm removal.

-v Remove volumes associated with containers.

Run a one-off command on a service. By default linked services will be started, unless
they are already running.

Allow insecure connections to the Docker registry.

-d Detached mode. Run container in the background, print new container name.

--entrypoint CMD
Override the entrypoint of the image with CMD.

Set an environment variable. Can be used multiple times.

-u, --user=USER
Run as a specific USER, a username or uid.

Do not start linked services.

--rm Remove container after run. This option is ignored in the detached mode.

Run command with the service's ports enabled and mapped to the host.

-T Disable pseudo tty allocation. By default a tty is allocated.

Set number of containers to run for a service. Numbers are specified in the form
service=num as arguments.

# docker-compose scale web=2 worker=3

Start existing containers.

Stop running containers without removing them.

-t, --timeout TIMEOUT
Specify a shutdown timeout in seconds. Default is 10.

Build, (re)create, start and attach to containers. If there are existing containers for a
service, `docker-compose up` will stop and recreate them (preserving mounted volumes with
volumes-from), so that changes in `docker-compose.yml` are picked up. If you do not want
existing containers to be recreated, `docker-compose up --no-recreate` will re-use
existing containers.

Allow insecure connections to the Docker registry.

-d Detached mode. Run container in the background, print new container name.

Produce a monochrome output.

Do not start linked services.

Only recreate containers whose configuration or image needs to be updated. This
feature is experimental.

If containers already exist, do not recreate them.

Do not build an image even if it is missing.

-t, --timeout TIMEOUT
Specify a shutdown timeout in seconds. Default is 10.

Recreate containers to add labels. If docker-compose detects containers that were created
without labels, it will refuse to run so that you don't end up with two sets of them.


Several environmental variables are available to configure docker-compose behavior.

Variables starting with DOCKER_ are the same as those used to configure the Docker
command-line client. If you're using boot2docker, eval "$(boot2docker shellinit)" will set
them to their correct values.

Sets the project name, which is prepended to the name of every container started by
docker-compose. Defaults to the basename of the current working directory.

Specify what file to read configuration from. If not provided, docker-compose will look
for docker-compose.yml in the current working directory, and then each parent directory
successively, until found.

Sets the URL of the docker daemon. As with the Docker client, defaults to

When set to anything other than an empty string, enables TLS communication with the

Configures the path to the ca.pem, cert.pem, and key.pem files used for TLS verification.
Defaults to ~/.docker.

Use docker-compose online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    A set of Python extension modules that
    wrap the cross-platform GUI classes from
    wxWidgets.. Audience: Developers. User
    interface: X Window System (X11), Win32 ...
    Download wxPython
  • 2
    This is the Total War pack file manager
    project, starting from version 1.7. A
    short introduction into Warscape
    modding: ...
    Download packfilemanager
  • 3
    A network traffic tool for measuring
    TCP and UDP performance with metrics
    around both throughput and latency. The
    goals include maintaining an active
    iperf cod...
    Download IPerf2
  • 4
    fre:ac - free audio converter
    fre:ac - free audio converter
    fre:ac is a free audio converter and CD
    ripper for various formats and encoders.
    It features MP3, MP4/M4A, WMA, Ogg
    Vorbis, FLAC, AAC, and Bonk format
    support, ...
    Download fre:ac - free audio converter
  • 5
    Write your chatbot logic once and
    connect it to one of the available
    messaging services, including Amazon
    Alexa, Facebook Messenger, Slack,
    Telegram or even yo...
    Download BotMan
  • 6
    gerbv  a Gerber (RS-274X) viewer
    gerbv a Gerber (RS-274X) viewer
    Gerbv is an open source Gerber file
    (RS-274X only) viewer. Gerbv lets you
    load several files on top of each other,
    do measurements on the displayed image,
    etc. ...
    Download gerbv a Gerber (RS-274X) viewer
  • 7
    I/O performance Analysis Tool.
    Audience: Developers, Information
    Technology, Science/Research, System
    Administrators. User interface: Win32
    (MS Windows). Progr...
    Download Iometer
  • More »

Linux commands