-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose-production.yaml
45 lines (44 loc) · 1.13 KB
/
compose-production.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
33
34
35
36
37
38
39
40
41
42
43
44
45
services:
mariadb:
image: mariadb:10.7
restart: unless-stopped
environment:
# Create a default database for osTicket
MARIADB_DATABASE: osticket
MARIADB_USER: osticket
# Set through environment file
MARIADB_ROOT_PASSWORD:
# Set through environment file
MARIADB_PASSWORD:
ports:
- "127.0.0.1:3306:3306"
volumes:
- data:/var/lib/mysql
osticket:
# Use a custom image, especially optimized for production
build:
context: .
dockerfile: ./docker/production/Dockerfile
args:
- SERVER_NAME
- LETS_ENCRYPT_EMAIL_ADDRESS
depends_on:
- mariadb
restart: unless-stopped
ports:
- "80:80"
- "443:443"
environment:
- ELASTIC_APM_SERVICE_NODE_NAME
- ELASTIC_APM_ENVIRONMENT
volumes:
- ost-config:/config
- certificates:/etc/letsencrypt
# Mount plugins from outside the container
- ./include/plugins:/var/www/html/include/plugins:ro
# Mount language packs from the outside
- ./include/i18n:/var/www/html/include/i18n:ro
volumes:
data:
ost-config:
certificates: