mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
c919cd31fa
For docker-compose.yml usage to prevent error messages.
51 lines
763 B
YAML
51 lines
763 B
YAML
version: '3'
|
|
|
|
services:
|
|
snipeit:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.alpine
|
|
container_name: snipeit
|
|
ports:
|
|
- "8000:80"
|
|
volumes:
|
|
- ./storage/logs:/var/www/html/storage/logs
|
|
depends_on:
|
|
- mariadb
|
|
- redis
|
|
env_file:
|
|
- .env.docker
|
|
networks:
|
|
- snipeit-backend
|
|
|
|
mariadb:
|
|
image: mariadb:10.6.4-focal
|
|
volumes:
|
|
- db:/var/lib/mysql
|
|
env_file:
|
|
- .env.docker
|
|
networks:
|
|
- snipeit-backend
|
|
ports:
|
|
- "3306:3306"
|
|
|
|
redis:
|
|
image: redis:6.2.5-buster
|
|
networks:
|
|
- snipeit-backend
|
|
|
|
mailhog:
|
|
image: mailhog/mailhog:v1.0.1
|
|
ports:
|
|
# - 1025:1025
|
|
- "8025:8025"
|
|
networks:
|
|
- snipeit-backend
|
|
|
|
|
|
volumes:
|
|
db: {}
|
|
|
|
networks:
|
|
snipeit-backend: {}
|