Last active
December 6, 2023 04:23
-
-
Save bphamict/9539a70a6b346d94b45539aabd610c06 to your computer and use it in GitHub Desktop.
Snipe-IT docker compose file running on localhost
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
| version: "3.8" | |
| networks: | |
| backend: | |
| driver: bridge | |
| volumes: | |
| mysql: | |
| driver: local | |
| mariadb: | |
| driver: local | |
| services: | |
| mariadb: | |
| image: mariadb:latest | |
| ports: | |
| - 3306:3306 | |
| volumes: | |
| - ~/.snipe-it/mariadb:/var/lib/mysql | |
| environment: | |
| - TZ=UTC | |
| - MYSQL_DATABASE=snipe_it | |
| - MYSQL_USER=default | |
| - MYSQL_PASSWORD=secret | |
| - MYSQL_ROOT_PASSWORD=root | |
| networks: | |
| - backend | |
| # mysql: | |
| # image: mysql:latest | |
| # environment: | |
| # - MYSQL_DATABASE=snipe_it | |
| # - MYSQL_USER=default | |
| # - MYSQL_PASSWORD=secret | |
| # - MYSQL_ROOT_PASSWORD=root | |
| # - TZ=UTC | |
| # volumes: | |
| # - ~/.snipe-it/mysql:/var/lib/mysql | |
| # ports: | |
| # - 3306:3306 | |
| # networks: | |
| # - backend | |
| snipe-it: | |
| image: snipe/snipe-it:latest | |
| ports: | |
| - 80:80 | |
| environment: | |
| # Mysql Parameters | |
| - MYSQL_PORT_3306_TCP_ADDR=mariadb | |
| - MYSQL_PORT_3306_TCP_PORT=3306 | |
| - MYSQL_DATABASE=snipe_it | |
| - MYSQL_USER=default | |
| - MYSQL_PASSWORD=secret | |
| - MYSQL_ROOT_PASSWORD=root | |
| # Email Parameters | |
| # - the hostname/IP address of your mailserver | |
| - MAIL_PORT_587_TCP_ADDR=smtp.whatever.com | |
| #the port for the mailserver (probably 587, could be another) | |
| - MAIL_PORT_587_TCP_PORT=587 | |
| # the default from address, and from name for emails | |
| - MAIL_ENV_FROM_ADDR=youremail@yourdomain.com | |
| - MAIL_ENV_FROM_NAME=Your Full Email Name | |
| # - pick 'tls' for SMTP-over-SSL, 'tcp' for unencrypted | |
| - MAIL_ENV_ENCRYPTION=tcp | |
| # SMTP username and password | |
| - MAIL_ENV_USERNAME=your_email_username | |
| - MAIL_ENV_PASSWORD=your_email_password | |
| # Snipe-IT Settings | |
| - APP_ENV=production | |
| - APP_DEBUG=false | |
| - APP_KEY=base64:ro0ylVis4FaS9r8m++GojVHqj1dXjItPa6UhFP5viHg= | |
| - APP_URL=http://127.0.0.1 | |
| - APP_TIMEZONE=Asia/Ho_Chi_Minh | |
| - APP_LOCALE=en | |
| # Docker-specific variables | |
| - PHP_UPLOAD_LIMIT=100 | |
| networks: | |
| - backend |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment