Last active
February 6, 2018 16:35
-
-
Save rekcah78/07dffab297cfb0c53bf65104ccb159bf to your computer and use it in GitHub Desktop.
Wordpress on coreos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #cloud-config | |
| coreos: | |
| units: | |
| - name: wordpress.service | |
| enable: true | |
| command: "start" | |
| content: | | |
| [Unit] | |
| Description=Wordpress | |
| After=docker.service | |
| Requires=docker.service | |
| [Service] | |
| TimeoutStartSec=0 | |
| ExecStart=/usr/bin/docker run --name wordpress -p 80:80 -e WORDPRESS_DB_HOST=demo.cfpo2nzy9lye.eu-west-3.rds.amazonaws.com:3306 -e WORDPRESS_DB_USER=demo -e WORDPRESS_DB_PASSWORD=demo022018 -e WORDPRESS_DB_NAME=demo wordpress:4 | |
| ExecStop=/usr/bin/docker stop wordpress | |
| ExecPostStop=-/usr/bin/docker rm wordpress | |
| [Install] | |
| WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment