Skip to content

Commit 0bd59f6

Browse files
committed
Added postgresql
Fixes #63
1 parent e52b570 commit 0bd59f6

File tree

5 files changed

+32
-0
lines changed

5 files changed

+32
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Supports:
1212
- Nginx or Apache HTTPd
1313
- PHP-FPM (with Xdebug)
1414
- MySQL, MariaDB or PerconaDB
15+
- PostgreSQL
1516
- Solr (disabled, with TYPO3 CMS EXT:solr configuration as example)
1617
- Elasticsearch (disabled, without configuration)
1718
- Redis (disabled)

docker-compose.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ main:
55
build: docker/main/
66
links:
77
- mysql
8+
#- postgres
89
#- mail
910
#- solr
1011
#- elasticsearch
@@ -54,6 +55,18 @@ mysql:
5455
env_file:
5556
- docker-env.yml
5657

58+
#######################################
59+
# PostgreSQL server
60+
#######################################
61+
#postgres:
62+
# build: docker/postgres/
63+
# ports:
64+
# - 15432:5432
65+
# volumes_from:
66+
# - storage
67+
# env_file:
68+
# - docker-env.yml
69+
5770
#######################################
5871
# Solr server
5972
#######################################

docker-env.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ MYSQL_USER=dev
4949
MYSQL_PASSWORD=dev
5050
MYSQL_DATABASE=typo3
5151

52+
#######################################
53+
# PostgreSQL settings
54+
POSTGRES_USER=dev
55+
POSTGRES_PASSWORD=dev
56+
5257
#######################################
5358
# FTP settings
5459
FTP_USER=dev

docker/postgres/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
FROM postgres:9.4

documentation/DOCKER-INFO.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ main | Main container with PHP-FPM and tools (your entrypoi
1010
storage | Storage container, eg. for Solr data
1111
web | Apache HTTPD or Nginx webserver
1212
mysql | MySQL database
13+
postgres (optional) | PostgreSQL database
1314
solr (optional) | Apache Solr server
1415
elasticsearch (optional) | Elasticsearch server
1516
memcached (optional) | Memcached server
@@ -26,6 +27,7 @@ main | [Ubuntu](https://registry.hub.docker.com/_/ubuntu/)
2627
storage | [Ubuntu](https://registry.hub.docker.com/_/ubuntu/) *official*
2728
web | [Apache](https://registry.hub.docker.com/_/httpd/) *official* or [Nginx](https://registry.hub.docker.com/_/nginx/) *official*
2829
mysql | [MySQL](https://registry.hub.docker.com/_/mysql/) *official*
30+
postgres | [PostgreSQL](https://registry.hub.docker.com/_/postgres/) *official*
2931
solr (optional) | [Solr](https://registry.hub.docker.com/u/guywithnose/solr/) from _guywithnose_
3032
elasticsearch (optional) | [Elasticsearch](https://registry.hub.docker.com/_/elasticsearch/) *official*
3133
memcached (optional) | [Memcached](https://registry.hub.docker.com/_/memcached/) *official*
@@ -83,6 +85,16 @@ External Port | 13306
8385
Access fo MySQL user "root" and "dev" will be allowed from external hosts (eg. for debugging, dumps and other stuff).
8486

8587

88+
### PostgreSQL
89+
90+
Setting | Value
91+
------------- | -------------
92+
User | dev (if not changed in env)
93+
Password | dev (if not changed in env)
94+
Host | postgres:5432
95+
External Port | 15432
96+
97+
8698
### Solr
8799

88100
Setting | Value

0 commit comments

Comments
 (0)