Last active
January 14, 2019 12:04
-
-
Save lcdss/f79f8cd996eb8f7d1e77ac7e63c60310 to your computer and use it in GitHub Desktop.
Docker run
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
| docker run -itd \ | |
| --restart unless-stopped \ | |
| --name nginx \ | |
| --network backend \ | |
| -p 80:80 \ | |
| -p 443:443 \ | |
| -v ~/docker/www:/var/www \ | |
| -v ~/docker/config/nginx:/etc/nginx/conf.d \ | |
| -w /var/www \ | |
| nginx:alpine | |
| docker run -itd \ | |
| --restart unless-stopped \ | |
| --name php \ | |
| --network backend \ | |
| -v ~/docker/www:/var/www \ | |
| -w /var/www \ | |
| php:fpm-alpine | |
| docker run -itd \ | |
| --restart unless-stopped \ | |
| --name mariadb \ | |
| --network backend \ | |
| -e MYSQL_ROOT_PASSWORD=secret \ | |
| -e MYSQL_DATABASE=dbname \ | |
| mariadb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment