2024-01-01 19:09:49 +01:00
|
|
|
# I'm very comfortable in this version, therefore it's the standard
|
|
|
|
version: '2.2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
snipeit:
|
|
|
|
image: snipe/snipe-it
|
2024-01-01 19:37:27 +01:00
|
|
|
environment:
|
|
|
|
MYSQL_PORT_3306_TCP_ADDR: "snipeit-db"
|
2024-01-01 19:09:49 +01:00
|
|
|
MYSQL_ROOT_PASSWORD: "root"
|
|
|
|
MYSQL_DATABASE: "snipeit"
|
|
|
|
MYSQL_USER: "snipeit"
|
|
|
|
MYSQL_PASSWORD: "snipeit"
|
|
|
|
APP_URL: "https://snipe.ixvd.net"
|
|
|
|
APP_TIMEZONE: "Europe/Amsterdam"
|
|
|
|
APP_LOCALE: "en"
|
|
|
|
APP_ENV: "production"
|
|
|
|
APP_DEBUG: "false"
|
|
|
|
PHP_UPLOAD_LIMIT: "100"
|
2024-01-01 19:47:28 +01:00
|
|
|
APP_TRUSTED_PROXIES: "172.0.0.0/24" # i hate this
|
2024-01-01 19:09:49 +01:00
|
|
|
env_file:
|
|
|
|
- /etc/ixvd/secrets/env/snipeit.env
|
2024-01-01 19:16:59 +01:00
|
|
|
volumes:
|
|
|
|
- /srv/snipeit/data:/var/lib/snipeit
|
2024-01-01 19:09:49 +01:00
|
|
|
networks:
|
|
|
|
- proxy
|
2024-01-01 19:37:27 +01:00
|
|
|
- internal
|
2024-01-01 19:09:49 +01:00
|
|
|
|
|
|
|
snipeit-db:
|
|
|
|
image: mysql:5.6
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: "root"
|
|
|
|
MYSQL_DATABASE: "snipeit"
|
|
|
|
MYSQL_USER: "snipeit"
|
|
|
|
MYSQL_PASSWORD: "snipeit"
|
|
|
|
volumes:
|
2024-01-01 19:37:27 +01:00
|
|
|
- /srv/snipeit/other/db:/var/lib/mysql
|
|
|
|
networks:
|
|
|
|
- internal
|