Merge pull request #34 from benmag/master

Add support for postgres
This commit is contained in:
Mahmoud Zalt 2016-05-07 04:34:27 +03:00
commit 22f11e03ee
2 changed files with 24 additions and 0 deletions

View File

@ -43,6 +43,20 @@ services:
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: root
### PostgreSQL Container ####################################
postgres:
build: ./postgres
container_name: postgres
volumes_from:
- data
ports:
- "5432:5432"
environment:
POSTGRES_DB: homestead
POSTGRES_USER: homestead
POSTGRES_PASSWORD: secret
### Redis Container #########################################
redis:
@ -60,6 +74,7 @@ services:
container_name: data
volumes:
- /var/lib/mysql
- /var/lib/postgresql/data
- /var/lib/redis
### Add more Containers below ###############################

9
postgres/Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM postgres:latest
MAINTAINER Ben M <git@bmagg.com>
VOLUME /var/lib/postgresql/data
CMD ["postgres"]
EXPOSE 5432