Skip to content
Permalink
Browse files

Added forgotten docker-compose file

  • Loading branch information
ethan committed Dec 19, 2019
1 parent 6f55408 commit b875875094db50f3113dafe42e99cd7208fd21ed
Showing with 52 additions and 0 deletions.
  1. +52 −0 demo/grouper/docker-compose.yml
@@ -267,6 +267,55 @@ services:
- 15672:15672
volumes:
- mq:/var/lib/rabbitmq
wordpress_server:
build: ./wordpress_server/
container_name: wordpress_server
networks:
- net
depends_on:
- wordpress_data
command: bash -c 'if [ ! -s /var/www/html/wp-config.php ]; then while ! nc -z wordpress_data 3306 ; do echo waiting for mysql on wordpress_data to start; sleep 3; done; /root/wp core download --allow-root && sleep 10 && /root/wp config create --dbname=wordpress --dbuser=wordpress --dbpass=54y6RxN7GfC7aes3 --dbhost=wordpress_data --allow-root; sleep 3 && /root/wp core install --url="http://localhost/" --title="wordpress" --admin_user="admin" --admin_password="54y6RxN7GfC7aes3" --admin_email="sentrifugo.container@gmail.com" --allow-root && /root/wp --allow-root rewrite structure "/%postname%" --hard --debug; /root/wp rewrite flush --hard --debug --allow-root && sed -i "s/<\/IfModule>/RewriteCond \%{HTTP:Authorization} \^\(\.\*\)\nRewriteRule \^\(\.\*\) - [E=HTTP_AUTHORIZATION:\%1]\n<\/IfModule>\nSetEnvIf Authorization "\(\.\*\)" HTTP_AUTHORIZATION=\$$1/" /var/www/html/.htaccess && /root/sed.sh && /root/wp plugin install jwt-authentication-for-wp-rest-api --activate --allow-root && /root/wp plugin install wp-rest-api-log --activate --allow-root && /root/wp plugin install shibboleth --activate --allow-root; fi; /usr/local/bin/startup.sh;'
ports:
- "80:80"
devices:
- "/dev/tty:/dev/tty"
volumes:
- wordpress_server:/var/www/html

wordpress_data:
build: ./wordpress_data/
container_name: wordpress_data
networks:
- net
volumes:
- wordpress_data:/var/lib/mysql
ports:
- 3306

sentrifugo_server:
build: ./sentrifugo_server/
container_name: sentrifugo_server
networks:
- net
depends_on:
- sentrifugo_data
ports:
- "8080:80"
devices:
- "/dev/tty:/dev/tty"
links:
- "sentrifugo_data:sentrifugo_data"

sentrifugo_data:
build: ./sentrifugo_data/
container_name: sentrifugo_data
networks:
- net
volumes:
- sentrifugo_data:/var/lib/mysql




networks:
net:
@@ -310,3 +359,6 @@ volumes:
midpoint_mysql:
midpoint_home:
mq:
wordpress_data:
wordpress_server:
sentrifugo_data:

0 comments on commit b875875

Please sign in to comment.
You can’t perform that action at this time.