SHARE
TWEET

Untitled

a guest Jun 11th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3.3'
  2.  
  3. services:
  4.    traefik:
  5.     image: traefik:alpine
  6.     ports:
  7.       - 80:80
  8.       - 443:443
  9.       - 8080:8080
  10.     volumes:
  11.       - $PWD/traefik/config:/etc/traefik
  12.       - /var/run/docker.sock:/var/run/docker.sock
  13.  
  14.    db:
  15.      image: mysql:5.7
  16.      volumes:
  17.        - db_data:/var/lib/mysql
  18.      restart: always
  19.      environment:
  20.        MYSQL_ROOT_PASSWORD: somewordpress
  21.        MYSQL_DATABASE: wordpress
  22.        MYSQL_USER: wordpress
  23.        MYSQL_PASSWORD: wordpress
  24.  
  25.    wordpress:
  26.      depends_on:
  27.        - db
  28.      image: wordpress:latest
  29.      ports:
  30.        - 8000:80
  31.      restart: always
  32.      environment:
  33.        WORDPRESS_DB_HOST: db:3306
  34.        WORDPRESS_DB_USER: wordpress
  35.        WORDPRESS_DB_PASSWORD: wordpress
  36.        WORDPRESS_DB_NAME: wordpress
  37.      labels:
  38.        - traefik.enable=true
  39.        - traefik.frontend.rule=Host:YOUR DOMAIN
  40. volumes:
  41.     db_data: {}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top