1
0
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:
Kris Lamoureux 2020-02-17 11:35:49 -05:00
parent e0f5129f7a
commit 639c4357d0
Signed by: kris
GPG Key ID: A30022791E1719A4

View File

@ -11,19 +11,26 @@ services:
MYSQL_USER: wordpress MYSQL_USER: wordpress
MYSQL_PASSWORD: Password1 MYSQL_PASSWORD: Password1
MYSQL_RANDOM_ROOT_PASSWORD: '1' MYSQL_RANDOM_ROOT_PASSWORD: '1'
networks:
- default
wordpress: wordpress:
depends_on: depends_on:
- db - db
image: wordpress:latest image: wordpress:latest
ports:
- "8000:80"
restart: always restart: always
environment: environment:
WORDPRESS_DB_HOST: db:3306 WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: Password1 WORDPRESS_DB_PASSWORD: Password1
WORDPRESS_DB_NAME: wordpress 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: logging:
driver: "fluentd" driver: "fluentd"
options: options:
@ -31,5 +38,8 @@ services:
# Messages are buffered until the connection is established # Messages are buffered until the connection is established
#fluentd-async-connect: "true" #fluentd-async-connect: "true"
networks:
traefik-net:
volumes: volumes:
db_data: {} db_data: {}