Add support for postgres

This commit is contained in:
benmag@users.noreply.github.com 2016-05-07 11:16:06 +10:00
parent daa5ed981f
commit 5d62ec1e67
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