85 lines
1.9 KiB
YAML
85 lines
1.9 KiB
YAML
version: '3'
|
|
|
|
services:
|
|
ocsapplication:
|
|
image: ocsinventory/ocsinventory-docker-image:nightly
|
|
container_name : ocsinventory-server
|
|
restart: always
|
|
ports:
|
|
- "80"
|
|
volumes:
|
|
- "perlcomdata:/etc/ocsinventory-server"
|
|
- "ocsreportsdata:/usr/share/ocsinventory-reports/ocsreports"
|
|
- "varlibdata:/var/lib/ocsinventory-reports"
|
|
- "httpdconfdata:/etc/apache2/conf-available"
|
|
environment:
|
|
OCS_DB_SERVER: ocsinventory-db
|
|
OCS_DB_USER: ocsuser
|
|
OCS_DB_PASS: ocspass
|
|
OCS_DB_NAME: ocsweb
|
|
# See documentation to set up SSL for MySQL
|
|
OCS_SSL_ENABLED: 0
|
|
links:
|
|
- ocsdb
|
|
networks:
|
|
- localocs
|
|
depends_on:
|
|
- ocsdb
|
|
|
|
ocsdb :
|
|
image : mysql:8.0
|
|
container_name : ocsinventory-db
|
|
restart: always
|
|
ports :
|
|
- "3306"
|
|
volumes :
|
|
- ./sql/:/docker-entrypoint-initdb.d/
|
|
- sqldata:/var/lib/mysql
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD : rootpass
|
|
MYSQL_USER : ocsuser
|
|
MYSQL_PASSWORD : ocspass
|
|
MYSQL_DATABASE : ocsweb
|
|
networks:
|
|
- localocs
|
|
|
|
ocsproxy:
|
|
image: nginx
|
|
container_name: ocsinventory-proxy
|
|
restart: always
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
volumes:
|
|
- ./nginx/conf:/etc/nginx/templates
|
|
- ./nginx/certs:/etc/nginx/certs
|
|
- ./nginx/auth:/etc/nginx/auth
|
|
environment:
|
|
# 80 or 443
|
|
LISTEN_PORT: 80
|
|
# empty or ssl
|
|
PORT_TYPE: ""
|
|
SSL_CERT: ocs-dummy.crt
|
|
SSL_KEY: ocs-dummy.key
|
|
# OCS Api user restriction (default ocsapi/ocapi)
|
|
API_AUTH_FILE: ocsapi.htpasswd
|
|
# OCS Download
|
|
READ_TIMEOUT: 300
|
|
CONNECT_TIMEOUT: 300
|
|
SEND_TIMEOUT: 300
|
|
MAX_BODY_SIZE: 1G
|
|
depends_on:
|
|
- ocsapplication
|
|
networks:
|
|
- localocs
|
|
|
|
networks:
|
|
localocs:
|
|
|
|
volumes:
|
|
perlcomdata:
|
|
ocsreportsdata:
|
|
varlibdata:
|
|
httpdconfdata:
|
|
sqldata:
|
|
|