Skip to content

Instantly share code, notes, and snippets.

@rystaf
Last active August 29, 2016 18:38
Show Gist options
  • Save rystaf/53f66c8dd36500a52ecfd7e9e5f7b4f0 to your computer and use it in GitHub Desktop.
Save rystaf/53f66c8dd36500a52ecfd7e9e5f7b4f0 to your computer and use it in GitHub Desktop.
snipeit build
# docker-compose up -d
# docker exec -it snipe_it_1 php artisan app:install --env=production
it:
build: .
ports:
- "80:80"
links:
- sql
environment:
- SNIPEIT_TIMEZONE=UTC
- SNIPEIT_LOCALE=en
- SERVER_URL=http://localhost
- MYSQL_PORT_3306_TCP_ADDR=sql
- MYSQL_PORT_3306_TCP_PORT=3306
- MYSQL_ENV_MYSQL_DATABASE=snipeit
- MYSQL_ENV_MYSQL_USER=root
- MYSQL_ENV_MYSQL_PASSWORD=rootpassword
sql:
image: mysql:5.6
environment:
- MYSQL_ROOT_PASSWORD=rootpassword
- MYSQL_DATABASE=snipeit
- MYSQL_USER=snipeit
- MYSQL_PASSWORD=snipepassword
- MYSQL_PORT_3306_TCP_ADDR=sql
FROM snipe/snipe-it
RUN cp /var/www/html/docker/app.php /var/www/html/app/config/production/app.php
RUN cp /var/www/html/docker/database.php /var/www/html/app/config/production/app.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment