-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
82 lines (81 loc) · 2.83 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: '2'
services:
web:
build:
context: ./images/snipeit
args:
- SNIPEIT_VERSION=${SNIPEIT_VERSION}
image: ianharrier/snipeit:${SNIPEIT_VERSION}
restart: unless-stopped
ports:
- ${WEB_PORT}:80
environment:
- APP_ENV=production
- APP_DEBUG=false
- APP_URL=${WEB_APP_URL}
- APP_TIMEZONE=${TIMEZONE}
- APP_LOCALE=${WEB_APP_LOCALE}
- DB_CONNECTION=mysql
- DB_HOST=db
- DB_DATABASE=${DB_MYSQL_DATABASE}
- DB_USERNAME=${DB_MYSQL_USER}
- DB_PASSWORD=${DB_MYSQL_PASSWORD}
- MAIL_DRIVER=smtp
- MAIL_HOST=${WEB_MAIL_HOST}
- MAIL_PORT=${WEB_MAIL_PORT}
- MAIL_USERNAME=${WEB_MAIL_USERNAME}
- MAIL_PASSWORD=${WEB_MAIL_PASSWORD}
- MAIL_ENCRYPTION=${WEB_MAIL_ENCRYPTION}
- MAIL_FROM_ADDR=${WEB_MAIL_FROM_ADDR}
- MAIL_FROM_NAME=${WEB_MAIL_FROM_NAME}
- MAIL_REPLYTO_ADDR=${WEB_MAIL_REPLYTO_ADDR}
- MAIL_REPLYTO_NAME=${WEB_MAIL_REPLYTO_NAME}
- IMAGE_LIB=gd
- APP_TRUSTED_PROXIES=${WEB_APP_TRUSTED_PROXIES}
volumes:
- ./volumes/web/data:/var/lib/snipeit:z
db:
image: mysql:5.7
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=${DB_MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${DB_MYSQL_DATABASE}
- MYSQL_USER=${DB_MYSQL_USER}
- MYSQL_PASSWORD=${DB_MYSQL_PASSWORD}
volumes:
- ./volumes/db/data:/var/lib/mysql:z
scheduler:
build:
context: ./images/scheduler
args:
- GLIBC_VERSION=2.28-r0
- COMPOSE_VERSION=1.21.2
image: ianharrier/snipeit-scheduler:1.0.13
restart: unless-stopped
environment:
- LDAP_SYNC_OPERATION=${WEB_LDAP_SYNC_OPERATION}
- LDAP_SYNC_CRON_EXP=${WEB_LDAP_SYNC_CRON_EXP}
- HOST_PATH=${PWD}
- COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME}
- TIMEZONE=${TIMEZONE}
volumes:
- ./:${PWD}
- /var/run/docker.sock:/var/run/docker.sock
security_opt:
- label:disable
cron:
build:
context: ./images/cron
image: ianharrier/snipeit-cron:1.1.1
restart: unless-stopped
environment:
- BACKUP_OPERATION=${BACKUP_OPERATION}
- BACKUP_CRON_EXP=${BACKUP_CRON_EXP}
- BACKUP_RETENTION=${BACKUP_RETENTION}
- HOST_PATH=${PWD}
- TIMEZONE=${TIMEZONE}
- MYSQL_DATABASE=${DB_MYSQL_DATABASE}
- MYSQL_USER=${DB_MYSQL_USER}
- MYSQL_PASSWORD=${DB_MYSQL_PASSWORD}
volumes:
- ./:${PWD}:z