-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yaml
32 lines (31 loc) · 1.14 KB
/
compose.yaml
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
services:
mariadb:
image: mariadb:11.2
environment:
# Don't secure the root user, since we're developing locally
- MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=1
# These values are used during the install, as described in the `README`
- MARIADB_DATABASE=osticket
- MARIADB_USER=osticket
- MARIADB_PASSWORD=osticket_pwd
ports:
# Expose the database port to allow connecting to it locally
- "3306:3306"
osticket:
# Use a custom image with the required extensions
build: ./docker/development/
depends_on:
- mariadb
ports:
- "8080:80"
extra_hosts:
# Expose the host at `host.docker.internal` to allow Xdebug to connect to it
- "host.docker.internal:host-gateway"
environment:
- OSTICKET_ENABLE_USER_CREATION=true
- OSTICKET_ENABLE_CLIENT_PASSWORD_LOGIN=true
volumes:
- ./:/var/www/html/
- ./docker/ost-config.php:/var/www/html/include/ost-config.php
- ./docker/development/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini:ro
- ./docker/development/conf.d/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini:ro