Skip to content

Commit

Permalink
Adjust documentation + examples
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-helmich committed Jan 12, 2020
1 parent 0cf0115 commit f156a4b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions 9.5/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ services:
- uploads:/var/www/html/uploads
networks:
- backend

database:
image: mysql:5.7
command:
Expand All @@ -22,10 +23,24 @@ services:
- "MYSQL_RANDOM_ROOT_PASSWORD=yes"
networks:
- backend

# For using PostgreSQL instead of MySQL, use the following "database"
# service instead:
#
# database:
# image: postgres:12.1
# environment:
# - "POSTGRES_USER=${POSTGRES_USER:-typo3}"
# - "POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-password}"
# - "POSTGRES_DATABASE=${POSTGRES_DATABASE:-typo3}"
# networks:
# - backend

volumes:
database:
fileadmin:
typo3conf:
uploads:

networks:
backend:
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,21 @@ This container does not ship a database management system; which means you'll ha

![](doc/database-setup.png)

Special use cases
-----------------

### Using PostgreSQL instead of MySQL

This image comes with full support for PostgreSQL as database driver. In this case, simply start a PostgreSQL database instead of MySQL:

$ docker run -d --name typo3-db \
-e POSTGRES_PASSWORD=yoursupersecretpassword \
-e POSTGRES_USER=typo3 \
-e POSTGRES_DATABASE=typo3 \
postgres:latest

Then, proceed as before.

Available tags
--------------

Expand Down

0 comments on commit f156a4b

Please sign in to comment.