Skip to content

Commit

Permalink
[Docker/Travis] Added experimental PostgreSQL service
Browse files Browse the repository at this point in the history
  • Loading branch information
mnocon committed Aug 12, 2020
1 parent dc16eac commit e673668
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ matrix:
- SETUP_BEHAT_OPTS="--profile=setup --suite=personas --tags=@setup"
- BEHAT_OPTS="--profile=adminui --suite=personas"
- if: type in (cron, api)
name: "[PHP 7.1] Admin UI on Clean Platform"
name: "[PHP 7.1/PostgreSQL] Admin UI on Clean Platform"
env:
- COMPOSE_FILE="doc/docker/base-dev.yml:doc/docker/db-postgresql.yml:doc/docker/selenium.yml"
- BEHAT_OPTS="--profile=adminui --suite=adminui"
- PHP_IMAGE=ezsystems/php:7.1-v1-node
- PHP_IMAGE_DEV=ezsystems/php:7.1-v1-dev
- PHP_IMAGE=ezsystems/php:7.1-v2-node10

# reduce depth (history) of git checkout
git:
Expand Down
1 change: 1 addition & 0 deletions doc/docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ The current Docker Compose files are made to be mixed and matched together for Q
- redis-session.yml _(optional, stores sessions in a separate redis instance)_
- varnish.yml _(optional, adds varnish service and appends config to app)_
- solr.yml _(optional, add solr service and configure app for it)_
- db-postgresql.yml _(optional, switches the DB engine to PostgreSQL - experimental)_
- selenium.yml _(optional, always needs to be last, adds selenium service and appends config to app)_
- multihost.yml _(optional, adds multihost config to app container network)_

Expand Down
22 changes: 22 additions & 0 deletions doc/docker/db-postgresql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: '3.3'
# Single server setup for dev

services:
app:
environment:
- DATABASE_PORT=5432
- DATABASE_DRIVER=pdo_pgsql
- DATABASE_PLATFORM=pgsql
- DATABASE_CHARSET=utf8
- DATABASE_VERSION=9.4

db:
image: postgres:9.4
environment:
- POSTGRES_USER=$DATABASE_USER
- POSTGRES_PASSWORD=$DATABASE_PASSWORD
- POSTGRES_DB=$DATABASE_NAME
networks:
- backend
ports:
- "5433:5432"

0 comments on commit e673668

Please # to comment.