Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc improve: docker-compose example #16

Closed
hxzhao527 opened this issue May 24, 2020 · 2 comments
Closed

Doc improve: docker-compose example #16

hxzhao527 opened this issue May 24, 2020 · 2 comments

Comments

@hxzhao527
Copy link

The docker-compose example can't exec server command after server startup.

According to the docker-doc, we need add stdin_open: true,

version: '3'
services:
  terraria:
    image: beardedio/terraria:vanilla-1.4.0.4
    ports:
      - '7777:7777'
    environment:
      - world=The_Common_Tropic.wld
    volumes:
      - ./config:/config
    tty: true
    stdin_open: true

Then, we can use docker attach to exec server-command.

@lpeabody
Copy link

Yup, this should be updated in the README.md for sure. I ended up having to do the same thing, but only after I read this issue #4 and noticed they added the stdin_open: true option to their service configuration.

@hskrtich
Copy link
Contributor

hskrtich commented Jun 5, 2020

I have added this to the readme, Thanks!

@hskrtich hskrtich closed this as completed Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants