Skip to content

Commit

Permalink
Merge pull request #115 from unt-libraries/update-docker-compose
Browse files Browse the repository at this point in the history
Update docker-compose to use version 2 syntax.
  • Loading branch information
somexpert authored Mar 29, 2017
2 parents 683bcb6 + 286652a commit dbc2df8
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit dbc2df8

Please sign in to comment.