Aufgrund von Wartungsarbeiten ist am 25.11.2019 in der Zeit von 7:00 Uhr bis 12:00 Uhr mit Ausfällen des Systems zu rechnen.

Commit 899e4845 authored by Axel Dürkop's avatar Axel Dürkop

Update Wordpress example

parent 125ad9f2
......@@ -292,30 +292,33 @@ Konfiguration in einer Datei `docker-compose.yml`
+++
`depends_on` verbindet Container miteinander
```yaml
version: "2"
version: '3.1'
services:
web:
image: 'docker.rz.tu-harburg.de:5000/docker/humhub:latest'
wordpress:
image: wordpress
restart: always
ports:
- '32330:80'
depends_on:
- db
- 8080:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: exampleuser
WORDPRESS_DB_PASSWORD: examplepass
WORDPRESS_DB_NAME: exampledb
db:
image: 'docker.rz.tu-harburg.de:5000/docker/mariadb:latest'
image: mysql:5.7
restart: always
environment:
- MYSQL_DATABASE=foo
- MYSQL_USER=bar
- MYSQL_PASSWORD=foobar
MYSQL_DATABASE: exampledb
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_RANDOM_ROOT_PASSWORD: '1'
```
---
## Images veröffentlichen
[Docker Hub Account anlegen](https://hub.docker.com/)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment