Skip to content

Instantly share code, notes, and snippets.

@kooba
Created June 25, 2015 14:02
Show Gist options
  • Save kooba/2c1e8c855ab0897ea784 to your computer and use it in GitHub Desktop.
Save kooba/2c1e8c855ab0897ea784 to your computer and use it in GitHub Desktop.
web:
restart: always
build: ./web
expose:
- "8000"
links:
- postgres:postgres
env_file: .env
command: /usr/local/bin/gunicorn mycms.wsgi:application -w 2 -b :8000
nginx:
restart: always
build: ./nginx/
ports:
- "80:80"
volumes:
- /www/static
volumes_from:
- web
links:
- web:web
postgres:
restart: always
image: postgres:latest
volumes_from:
- data
ports:
- "5432:5432"
data:
restart: no
image: postgres:latest
volumes:
- /var/lib/postgresql
command: true
@ask8xm
Copy link

ask8xm commented Sep 21, 2018

$ docker-compose build
ERROR: The Compose file './docker-compose.yml' is invalid because:
data.restart contains an invalid type, it should be a string
data.command contains an invalid type, it should be a string, or an array

why this message appear?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment