---
# System prepended metadata

title: docker compose file not working

---

# docker compose file not working
## Version 1 to 2.x
In the majority of cases, moving from version 1 to 2 is a very simple process:

1. Indent the whole file by one level and put a services: key at the top.
2. Add a version: '2' line at the top of the file.

```dockerfile=
version: "2"
services:
	keystonejs:
		image: ntutselab/keystonejs
		ports:
		 - "3000:3000"
		links:
		 - mongodb
	mongodb:
		image: mongo
		ports:
		 - "27017:27017"
```