diff --git a/docker-compose.yml b/docker-compose.yml index 521197c..64089d0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,22 +1,24 @@ -mysql: - image: mysql:latest - environment: - - MYSQL_ROOT_PASSWORD=root - - MYSQL_DATABASE=name +version: '2' +services: + mysql: + image: mysql:latest + environment: + - MYSQL_ROOT_PASSWORD=root + - MYSQL_DATABASE=name -postgres: - image: postgres:latest - environment: - - POSTGRES_PASSWORD=name - - POSTGRES_USER=name + postgres: + image: postgres:latest + environment: + - POSTGRES_PASSWORD=name + - POSTGRES_USER=name -web: - build: . - command: python manage.py runserver 0.0.0.0:8000 - volumes: - - .:/app/ - ports: - - "8000:8000" - links: - - mysql - - postgres + web: + build: . + command: python manage.py runserver 0.0.0.0:8000 + volumes: + - .:/app/ + ports: + - "8000:8000" + links: + - mysql + - postgres