Database configuration

This commit is contained in:
Krzysztof Szumny 2015-08-22 20:57:44 +02:00
parent 3f99a8637d
commit de9839f2db
5 changed files with 32 additions and 1 deletions

View File

@ -41,6 +41,8 @@ nosetests.xml
# Pycharm
.idea/*
!.idea/{{cookiecutter.repo_name}}.iml
!.idea/dataSources.xml
!.idea/dataSources.local.xml
!.idea/deployment.xml
!.idea/modules.xml
!.idea/webResources.xml

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="dataSourceStorageLocal">
<data-source name="PostgreSQL - postgres@localhost" uuid="4591ae40-df2d-47bb-b164-7130902f1eac">
<secret-storage>master_key</secret-storage>
<user-name>postgres</user-name>
<schema-pattern>postgres.pg_catalog postgres.public</schema-pattern>
<default-schemas>postgres.pg_catalog postgres.public</default-schemas>
</data-source>
</component>
</project>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DataSourceManagerImpl" format="xml" hash="1472382126">
<data-source source="LOCAL" name="PostgreSQL - postgres@localhost" uuid="4591ae40-df2d-47bb-b164-7130902f1eac">
<driver-ref>postgresql</driver-ref>
<synchronize>true</synchronize>
<jdbc-driver>org.postgresql.Driver</jdbc-driver>
<jdbc-url>jdbc:postgresql://localhost:25432/postgres</jdbc-url>
<libraries />
</data-source>
</component>
</project>

View File

@ -11,7 +11,11 @@
</facet>
</component>
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.idea" />
<excludeFolder url="file://$MODULE_DIR$/.sass-cache" />
<excludeFolder url="file://$MODULE_DIR$/node_modules" />
</content>
<orderEntry type="jdk" jdkName="Remote Python 2.7.9 (sftp://docker_{{ cookiecutter.repo_name }}@localhost:2222/usr/local/bin/python)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>

View File

@ -1,5 +1,7 @@
postgres:
image: postgres
ports:
- "25432:5432"
volumes:
# If you are using boot2docker, postgres data has to live in the VM for now until #581 is fixed
# for more info see here: https://github.com/boot2docker/boot2docker/issues/581