-
Notifications
You must be signed in to change notification settings - Fork 38
/
docker-compose.yml
45 lines (43 loc) · 1009 Bytes
/
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
version: '3'
services :
web :
image : ocsinventory/ocsinventory-docker-image:latest
container_name : ocsinventory-server
environment :
OCS_DBNAME : ocsweb
OCS_DBSERVER_READ : ocsinventory-db
OCS_DBSERVER_WRITE : ocsinventory-db
OCS_DBUSER : ocs
OCS_DBPASS : ocs
volumes :
- ocsdownload:/usr/share/ocsinventory-reports/ocsreports/download/
- ocssrv:/etc/ocsinventory-reports/
- ocslib:/var/lib/ocsinventory-reports/
links :
- db
ports :
- 80:80
- 443:443
db :
image : mysql:5.7
container_name : ocsinventory-db
restart: always
environment:
MYSQL_ROOT_PASSWORD : mdp
MYSQL_USER : ocs
MYSQL_PASSWORD : ocs
MYSQL_DATABASE : ocsweb
volumes :
- ./sql/:/docker-entrypoint-initdb.d/
- ocsdata:/var/lib/mysql
ports :
- 3306:3306
volumes:
ocsdata:
driver: local
ocssrv:
driver: local
ocslib:
driver: local
ocsdownload:
driver: local