Skip to content

Commit

Permalink
Added docker image for mariadb, configured environment variables for …
Browse files Browse the repository at this point in the history
…local and qa environments.
  • Loading branch information
zakhenry committed Aug 6, 2015
1 parent 8190c2e commit 097864e
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 7 deletions.
11 changes: 10 additions & 1 deletion .local.env
@@ -1,5 +1,14 @@
API_HOST=http://local.api.spira.io:8080
APP_HOST=http://local.app.spira.io

XDEBUG_ENABLED=true

# spira main postgres database
POSTGRES_PASSWORD=spira
POSTGRES_USER=spira
POSTGRES_USER=spira

# vanilla forums database
MYSQL_ROOT_PASSWORD=root
MYSQL_USER=spira_vanilla
MYSQL_PASSWORD=spira_vanilla
MYSQL_DATABASE=spira_vanilla
12 changes: 10 additions & 2 deletions .qa.env
Expand Up @@ -2,5 +2,13 @@
API_HOST=http://qa.api.spira.io:8080
APP_HOST=http://qa.app.spira.io
XDEBUG_ENABLED=false
POSTGRES_PASSWORD=spiraqa
POSTGRES_USER=spiraqa

# spira main postgres database
POSTGRES_PASSWORD=spira_qa
POSTGRES_USER=spira_qa

# vanilla forums database
MYSQL_ROOT_PASSWORD=root_qa
MYSQL_USER=spira_vanilla_qa
MYSQL_PASSWORD=spira_vanilla_qa
MYSQL_DATABASE=spira_vanilla_qa
8 changes: 8 additions & 0 deletions docker-compose.qa.yml
Expand Up @@ -17,6 +17,14 @@ database:
ports:
- "5432:5432"

vanilla_database:
image: mariadb:10.0
env_file:
- .common.env
- .local.env
ports:
- "3306:3306"

cache:
image: redis

Expand Down
18 changes: 14 additions & 4 deletions docker-compose.yml
Expand Up @@ -18,6 +18,14 @@ database:
ports:
- "5432:5432"

vanilladatabase:
image: mariadb:10.0
env_file:
- .common.env
- .local.env
ports:
- "3306:3306"

cache:
image: redis

Expand Down Expand Up @@ -48,13 +56,14 @@ php:
- data
links:
- database:database
- vanilladatabase:vanilladatabase
- cache:cache
- queue:queue
- mailcatcher:mailcatcher
env_file:
- .common.env
- .local.env
- .secret.env
- .common.env
- .local.env
- .secret.env
privileged: true

web:
Expand All @@ -76,8 +85,8 @@ web:

devtools:
image: spira/docker-dev-tools:latest
working_dir: /data
# image: spira/docker-dev-tools:phantomjs-1.9.8
working_dir: /data
volumes_from:
- data
privileged: true
Expand All @@ -89,6 +98,7 @@ devtools:
- web:web
- mailcatcher:mailcatcher
- database:database
- vanilladatabase:vanilladatabase
- cache:cache
- queue:queue

Expand Down

0 comments on commit 097864e

Please sign in to comment.