~busykoala/wp_container_template

c3c175b37595ed4956da8f3ee80479548aba1e2a — Matthias Osswald 2 years ago 001e73f
Move username and passwords to env file.
1 files changed, 7 insertions(+), 7 deletions(-)

M docker-compose.yml
M docker-compose.yml => docker-compose.yml +7 -7
@@ 12,10 12,10 @@ services:
    volumes:
      - wp-data:/var/lib/mysql
    environment:
       MYSQL_ROOT_PASSWORD: rootPassword
       MYSQL_DATABASE: wordpress
       MYSQL_USER: wp-user
       MYSQL_PASSWORD: wp-pass
      - MYSQL_ROOT_PASSWORD=${DB_ROOT_PW}
      - MYSQL_DATABASE=wordpress
      - MYSQL_USER=${DB_USER}
      - MYSQL_PASSWORD=${DB_USER_PW}
    ports:
      - 8889:3306
    networks:


@@ 27,9 27,9 @@ services:
    ports:
      - 8888:80
    environment:
       WORDPRESS_DB_HOST: db
       WORDPRESS_DB_USER: wp-user
       WORDPRESS_DB_PASSWORD: wp-pass
       - WORDPRESS_DB_HOST=db
       - WORDPRESS_DB_USER=${DB_USER}
       - WORDPRESS_DB_PASSWORD=${DB_USER_PW}
    volumes:
      - ./wordpress-files:/var/www/html
    container_name: wordpress-site