mirror of
https://github.com/krislamo/graylog_demo
synced 2024-12-16 06:50:35 +00:00
Route WordPress container through Traefik
This commit is contained in:
parent
e0f5129f7a
commit
639c4357d0
@ -11,19 +11,26 @@ services:
|
||||
MYSQL_USER: wordpress
|
||||
MYSQL_PASSWORD: Password1
|
||||
MYSQL_RANDOM_ROOT_PASSWORD: '1'
|
||||
networks:
|
||||
- default
|
||||
|
||||
wordpress:
|
||||
depends_on:
|
||||
- db
|
||||
image: wordpress:latest
|
||||
ports:
|
||||
- "8000:80"
|
||||
restart: always
|
||||
environment:
|
||||
WORDPRESS_DB_HOST: db:3306
|
||||
WORDPRESS_DB_USER: wordpress
|
||||
WORDPRESS_DB_PASSWORD: Password1
|
||||
WORDPRESS_DB_NAME: wordpress
|
||||
networks:
|
||||
- default
|
||||
- traefik-net
|
||||
labels:
|
||||
- "traefik.http.routers.wordpress.rule=Host(`wordpress.172.28.128.30.xip.io`)"
|
||||
- "traefik.docker.network=vagrant_traefik-net"
|
||||
- "traefik.enable=true"
|
||||
logging:
|
||||
driver: "fluentd"
|
||||
options:
|
||||
@ -31,5 +38,8 @@ services:
|
||||
# Messages are buffered until the connection is established
|
||||
#fluentd-async-connect: "true"
|
||||
|
||||
networks:
|
||||
traefik-net:
|
||||
|
||||
volumes:
|
||||
db_data: {}
|
||||
|
Loading…
Reference in New Issue
Block a user