File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,6 +43,20 @@ services:
4343 MYSQL_PASSWORD : secret
4444 MYSQL_ROOT_PASSWORD : root
4545
46+ # ## PostgreSQL Container ####################################
47+
48+ postgres :
49+ build : ./postgres
50+ container_name : postgres
51+ volumes_from :
52+ - data
53+ ports :
54+ - " 5432:5432"
55+ environment :
56+ POSTGRES_DB : homestead
57+ POSTGRES_USER : homestead
58+ POSTGRES_PASSWORD : secret
59+
4660# ## Redis Container #########################################
4761
4862 redis :
@@ -60,6 +74,7 @@ services:
6074 container_name : data
6175 volumes :
6276 - /var/lib/mysql
77+ - /var/lib/postgresql/data
6378 - /var/lib/redis
6479
6580# ## Add more Containers below ###############################
Original file line number Diff line number Diff line change 1+ FROM postgres:latest
2+
3+ MAINTAINER Ben M <git@bmagg.com>
4+
5+ VOLUME /var/lib/postgresql/data
6+
7+ CMD ["postgres" ]
8+
9+ EXPOSE 5432
You can’t perform that action at this time.
0 commit comments