Commit 66b763b5 authored by NaveenKJ's avatar NaveenKJ
Browse files

Code files added

parent edef61db
version: "3"
services:
mysql:
image: mysql
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_DATABASE: wordpress
wordpress:
depends_on:
- mysql
image: wordpress
ports:
- "8080:80"
restart: always
environment:
WORDPRESS_DB_PASSWORD: wordpress
volumes:
db_data:
\ No newline at end of file
# Adds wp-cli to the offical WordPress image
FROM wordpress:latest
MAINTAINER Russ McKendrick <russ@mckendrick.io>
# Install the packages we need to run wp-cli
RUN apt-get update && apt-get install -y sudo less mysql-client && curl -o /bin/wp-cli.phar https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
# Copy the wrapper for wp-cli and set the correct execute permissions
COPY wp /bin/wp
RUN chmod 755 /bin/wp-cli.phar /bin/wp
# Clean up the installation files
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
\ No newline at end of file
version: "3"
services:
mysql:
image: mysql
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_DATABASE: wordpress
wordpress:
depends_on:
- mysql
build: ./
ports:
- "8080:80"
restart: always
environment:
WORDPRESS_DB_PASSWORD: wordpress
volumes:
db_data:
\ No newline at end of file
#!/bin/sh
sudo -u www-data /bin/wp-cli.phar $*
\ No newline at end of file
version: "3"
services:
mysql:
image: mysql
volumes:
- wordpress_db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_DATABASE: wordpress
wordpress:
depends_on:
- mysql
image: wordpress
ports:
- "80:80"
restart: always
environment:
WORDPRESS_DB_PASSWORD: wordpress
volumes:
wordpress_db_data:
\ No newline at end of file
version: "3"
services:
cluster:
image: russmckendrick/cluster
ports:
- "80:80"
deploy:
replicas: 6
restart_policy:
condition: on-failure
placement:
constraints:
- node.role == worker
\ No newline at end of file
# Adds wp-cli to the offical WordPress image
FROM wordpress:latest
MAINTAINER Russ McKendrick <russ@mckendrick.io>
# Install the packages we need to run wp-cli
RUN apt-get update && apt-get install -y sudo less mysql-client && curl -o /bin/wp-cli.phar https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
# Copy the wrapper for wp-cli and set the correct execute permissions
COPY wp /bin/wp
RUN chmod 755 /bin/wp-cli.phar /bin/wp
# Clean up the installation files
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
\ No newline at end of file
version: "3"
services:
mysql:
image: mysql
volumes:
- dbdata:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_DATABASE: wordpress
wordpress:
depends_on:
- mysql
build: ./
volumes:
- wpdata:/var/www/html
ports:
- "80:80"
restart: always
environment:
WORDPRESS_DB_PASSWORD: wordpress
volumes:
dbdata:
external:
name: dbdata
wpdata:
external:
name: wpdata
\ No newline at end of file
#!/bin/sh
sudo -u www-data /bin/wp-cli.phar $*
\ No newline at end of file
FROM alpine
RUN ls -lha /home
RUN ls -lha /var
CMD echo Hello world
\ No newline at end of file
FROM alpine
RUN ls -lha /home
RUN ls -lha /vars
CMD echo Hello world
\ No newline at end of file
global:
scrape_interval: 15s # By default, scrape targets every 15 seconds.
external_labels:
monitor: 'Docker Bootcamp'
# A scrape configuration containing exactly one endpoint to scrape:
scrape_configs:
- job_name: 'cadvisor'
scrape_interval: 5s
static_configs:
- targets: ['cadvisor:8080']
\ No newline at end of file
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