Add support for postgres
This commit is contained in:
parent
daa5ed981f
commit
5d62ec1e67
@ -43,6 +43,20 @@ services:
|
|||||||
MYSQL_PASSWORD: secret
|
MYSQL_PASSWORD: secret
|
||||||
MYSQL_ROOT_PASSWORD: root
|
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 Container #########################################
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
@ -60,6 +74,7 @@ services:
|
|||||||
container_name: data
|
container_name: data
|
||||||
volumes:
|
volumes:
|
||||||
- /var/lib/mysql
|
- /var/lib/mysql
|
||||||
|
- /var/lib/postgresql/data
|
||||||
- /var/lib/redis
|
- /var/lib/redis
|
||||||
|
|
||||||
### Add more Containers below ###############################
|
### Add more Containers below ###############################
|
||||||
|
9
postgres/Dockerfile
Normal file
9
postgres/Dockerfile
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
FROM postgres:latest
|
||||||
|
|
||||||
|
MAINTAINER Ben M <git@bmagg.com>
|
||||||
|
|
||||||
|
VOLUME /var/lib/postgresql/data
|
||||||
|
|
||||||
|
CMD ["postgres"]
|
||||||
|
|
||||||
|
EXPOSE 5432
|
Loading…
Reference in New Issue
Block a user