Add support for postgres
This commit is contained in:
		| @@ -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
									
								
							
							
						
						
									
										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 | ||||
		Reference in New Issue
	
	Block a user
	 benmag@users.noreply.github.com
					benmag@users.noreply.github.com