Last active
December 11, 2022 21:04
-
-
Save bitsandbooks/b86c16ac2c49d02abc14ef1c05aa9f5a to your computer and use it in GitHub Desktop.
portainer
This file contains 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
{ | |
"version":"2", | |
"templates":[ | |
{ | |
"type":1, | |
"title":"Nginx", | |
"description":"High performance web server", | |
"categories":[ | |
"webserver" | |
], | |
"platform":"linux", | |
"logo":"https://portainer-io-assets.sfo2.digitaloceanspaces.com/logos/nginx.png", | |
"image":"nginx:latest", | |
"ports":[ | |
"80/tcp", | |
"443/tcp" | |
], | |
"volumes":[ | |
{ | |
"container":"/etc/nginx" | |
}, | |
{ | |
"container":"/usr/share/nginx/html" | |
} | |
] | |
}, | |
{ | |
"type": 1, | |
"title": "Apache", | |
"description": "Apache httpd open source HTTP server", | |
"categories": [ | |
"webserver" | |
], | |
"platform": "linux", | |
"logo": "https://portainer-io-assets.sfo2.digitaloceanspaces.com/logos/httpd.png", | |
"image": "httpd:latest", | |
"ports": [ | |
"80/tcp" | |
], | |
"volumes": [ | |
{ | |
"container":"/usr/local/apache2/htdocs/" | |
} | |
] | |
}, | |
{ | |
"type": 1, | |
"title": "Caddy", | |
"description": "Open-source web server with automatic HTTPS written in Go", | |
"categories": [ | |
"webserver" | |
], | |
"platform": "linux", | |
"logo": "https://portainer-io-assets.sfo2.digitaloceanspaces.com/logos/caddy.png", | |
"image": "caddy:latest", | |
"ports": [ | |
"80/tcp" | |
], | |
"volumes": [ | |
{ | |
"container":"/data" | |
} | |
] | |
}, | |
{ | |
"type": 1, | |
"title": "MySQL", | |
"description": "The most popular open-source database", | |
"categories": [ | |
"database" | |
], | |
"platform": "linux", | |
"logo": "https://portainer-io-assets.sfo2.digitaloceanspaces.com/logos/mysql.png", | |
"image": "mysql/mysql-server:5.7", | |
"env": [ | |
{ | |
"name":"MYSQL_ROOT_PASSWORD", | |
"label":"Root password" | |
}, | |
{ | |
"name":"MYSQL_ROOT_HOST", | |
"default":"%", | |
"preset":true | |
} | |
], | |
"ports": [ | |
"3306/tcp" | |
], | |
"volumes": [ | |
{ | |
"container":"/var/lib/mysql" | |
} | |
] | |
}, | |
{ | |
"type": 1, | |
"title": "MariaDB", | |
"description": "Performance beyond MySQL", | |
"categories": [ | |
"database" | |
], | |
"platform": "linux", | |
"logo": "https://portainer-io-assets.sfo2.digitaloceanspaces.com/logos/mariadb.png", | |
"image": "mariadb:latest", | |
"env": [ | |
{ | |
"name": "MYSQL_ROOT_PASSWORD", | |
"label": "Root password" | |
} | |
], | |
"ports": [ | |
"3306/tcp" | |
], | |
"volumes": [ | |
{ | |
"container":"/var/lib/mysql" | |
} | |
] | |
}, | |
{ | |
"type": 1, | |
"title": "PostgreSQL", | |
"description": "The most advanced open-source database", | |
"categories": [ | |
"database" | |
], | |
"platform": "linux", | |
"logo": "https://portainer-io-assets.sfo2.digitaloceanspaces.com/logos/postgres.png", | |
"image": "postgres:latest", | |
"env": [ | |
{ | |
"name": "POSTGRES_USER", | |
"label": "Superuser" | |
}, | |
{ | |
"name": "POSTGRES_PASSWORD", | |
"label": "Superuser password" | |
} | |
], | |
"ports": [ | |
"5432/tcp" | |
], | |
"volumes": [ | |
{ | |
"container":"/var/lib/postgresql/data" | |
} | |
] | |
}, | |
{ | |
"type": 1, | |
"title": "MongoDB", | |
"description": "Open-source document-oriented database", | |
"categories": [ | |
"database" | |
], | |
"platform": "linux", | |
"logo": "https://portainer-io-assets.sfo2.digitaloceanspaces.com/logos/mongo.png", | |
"image": "mongo:latest", | |
"ports": [ | |
"27017/tcp" | |
], | |
"volumes": [ | |
{ | |
"container": "/data/db" | |
} | |
] | |
}, | |
{ | |
"type": 1, | |
"title": "File browser", | |
"description": "A web file manager", | |
"note": "Default credentials: admin/admin", | |
"categories": [ | |
"filesystem", | |
"storage" | |
], | |
"platform": "linux", | |
"logo": "https://portainer-io-assets.sfo2.digitaloceanspaces.com/logos/filebrowser.png", | |
"image": "filebrowser/filebrowser:latest", | |
"ports": [ | |
"80/tcp" | |
], | |
"volumes": [ | |
{ | |
"container": "/data" | |
}, | |
{ | |
"container": "/srv" | |
} | |
], | |
"command": "--port 80 --database /data/database.db --root /srv" | |
}, | |
{ | |
"type": 2, | |
"title": "WordPress", | |
"description": "WordPress setup with a MySQL database", | |
"note": "Deploys a WordPress instance connected to a MySQL database.", | |
"categories": [ | |
"CMS" | |
], | |
"platform": "linux", | |
"logo": "https://portainer-io-assets.sfo2.digitaloceanspaces.com/logos/wordpress.png", | |
"ports": [ | |
"80/tcp" | |
], | |
"volumes": [ | |
{ | |
"container": "/var/www/html" | |
} | |
], | |
"repository":{ | |
"url": "https://gist.github.com/bitsandbooks/b86c16ac2c49d02abc14ef1c05aa9f5a", | |
"stackfile": "stacks-wordpress-docker-stack.yml" | |
}, | |
"env":[ | |
{ | |
"name": "MYSQL_USER_PASSWORD", | |
"label": "WordPress user's database password", | |
"description": "WordPress user's password (make this strong)." | |
}, | |
{ | |
"name": "MYSQL_DATABASE_PASSWORD", | |
"label": "Database root password", | |
"description": "MySQL root user's password (make this really strong)." | |
} | |
] | |
}, | |
{ | |
"type": 3, | |
"title": "WordPress", | |
"description": "WordPress setup with a MySQL database", | |
"note": "Deploys a WordPress instance connected to a MySQL database.", | |
"categories": [ | |
"CMS" | |
], | |
"platform": "linux", | |
"logo": "https://portainer-io-assets.sfo2.digitaloceanspaces.com/logos/wordpress.png", | |
"ports": [ | |
"80/tcp" | |
], | |
"volumes": [ | |
{ | |
"container": "/var/www/html" | |
} | |
], | |
"repository": { | |
"url":"https://gist.github.com/bitsandbooks/b86c16ac2c49d02abc14ef1c05aa9f5a", | |
"stackfile":"stacks-wordpress-docker-compose.yml" | |
}, | |
"env":[ | |
{ | |
"name":"MYSQL_USER_PASSWORD", | |
"label":"WordPress user's database password", | |
"description":"WordPress user's password (make this strong)." | |
}, | |
{ | |
"name":"MYSQL_DATABASE_PASSWORD", | |
"label":"Database root password", | |
"description":"MySQL root user's password (make this really strong)." | |
} | |
] | |
} | |
] | |
} |
This file contains 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
version: "2" | |
services: | |
wordpress-db: | |
image: mysql:5.7 | |
volumes: | |
- wordpress-db-data:/var/lib/mysql | |
restart: unless-stopped | |
environment: | |
MYSQL_ROOT_PASSWORD: ${MYSQL_DATABASE_PASSWORD} | |
MYSQL_DATABASE: wordpress | |
MYSQL_USER: wordpress | |
MYSQL_PASSWORD: ${MYSQL_USER_PASSWORD} | |
wordpress: | |
depends_on: | |
- wordpress-db | |
image: wordpress:latest | |
restart: unless-stopped | |
environment: | |
WORDPRESS_DB_HOST: wordpress-db:3306 | |
WORDPRESS_DB_USER: wordpress | |
WORDPRESS_DB_PASSWORD: ${MYSQL_USER_PASSWORD} | |
volumes: | |
wordpress-db-data: |
This file contains 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
version: "2" | |
services: | |
wordpress-db: | |
image: mysql:5.7 | |
volumes: | |
- wordpress-db-data:/var/lib/mysql | |
restart: unless-stopped | |
environment: | |
MYSQL_ROOT_PASSWORD: ${MYSQL_DATABASE_PASSWORD} | |
MYSQL_DATABASE: wordpress | |
MYSQL_USER: wordpress | |
MYSQL_PASSWORD: ${MYSQL_USER_PASSWORD} | |
wordpress: | |
depends_on: | |
- wordpress-db | |
image: wordpress:latest | |
restart: unless-stopped | |
environment: | |
WORDPRESS_DB_HOST: wordpress-db:3306 | |
WORDPRESS_DB_USER: wordpress | |
WORDPRESS_DB_PASSWORD: ${MYSQL_USER_PASSWORD} | |
volumes: | |
wordpress-db-data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment