2021-04-20 21:17:34 -07:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
snipeit:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile.alpine
|
|
|
|
container_name: snipeit
|
|
|
|
ports:
|
2021-10-03 00:42:53 -07:00
|
|
|
- "8000:80"
|
2021-04-20 21:17:34 -07:00
|
|
|
volumes:
|
|
|
|
- ./logs:/var/www/html/storage/logs
|
|
|
|
depends_on:
|
|
|
|
- mariadb
|
|
|
|
- redis
|
|
|
|
env_file:
|
|
|
|
- .env.docker
|
|
|
|
networks:
|
|
|
|
- snipeit-backend
|
|
|
|
|
|
|
|
mariadb:
|
2021-10-03 00:42:53 -07:00
|
|
|
image: mariadb:10.6.4-focal
|
2021-04-20 21:17:34 -07:00
|
|
|
volumes:
|
|
|
|
- db:/var/lib/mysql
|
|
|
|
env_file:
|
|
|
|
- .env.docker
|
|
|
|
networks:
|
|
|
|
- snipeit-backend
|
2022-08-12 10:00:26 -07:00
|
|
|
ports:
|
|
|
|
- "3306:3306"
|
2021-04-20 21:17:34 -07:00
|
|
|
|
|
|
|
redis:
|
2021-10-03 00:42:53 -07:00
|
|
|
image: redis:6.2.5-buster
|
2021-04-20 21:17:34 -07:00
|
|
|
networks:
|
|
|
|
- snipeit-backend
|
|
|
|
|
|
|
|
mailhog:
|
2021-10-03 00:42:53 -07:00
|
|
|
image: mailhog/mailhog:v1.0.1
|
2021-04-20 21:17:34 -07:00
|
|
|
ports:
|
|
|
|
# - 1025:1025
|
2021-10-03 00:42:53 -07:00
|
|
|
- "8025:8025"
|
2021-04-20 21:17:34 -07:00
|
|
|
networks:
|
|
|
|
- snipeit-backend
|
|
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db: {}
|
|
|
|
|
|
|
|
networks:
|
2022-08-12 10:00:26 -07:00
|
|
|
snipeit-backend: {}
|