João Joyce 8 years ago
parent
commit
a42f62c626
2 changed files with 18 additions and 0 deletions
  1. 13 0
      docker-compose.yml
  2. 5 0
      postgres-postgis/Dockerfile

+ 13 - 0
docker-compose.yml

@@ -150,6 +150,19 @@ services:
             POSTGRES_USER: homestead
             POSTGRES_PASSWORD: secret
 
+### PostgreSQL PostGis Container ############################
+
+    postgres-postgis:
+        build: ./postgres-postgis
+        volumes:
+            - postgres:/var/lib/postgresql/data
+        ports:
+            - "5432:5432"
+        environment:
+            POSTGRES_DB: homestead
+            POSTGRES_USER: homestead
+            POSTGRES_PASSWORD: secret
+
 ### Neo4j Container #########################################
 
     neo4j:

+ 5 - 0
postgres-postgis/Dockerfile

@@ -0,0 +1,5 @@
+FROM mdillon/postgis:latest
+
+CMD ["postgres"]
+
+EXPOSE 5432