forked from exelearning/exelearning
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (48 loc) · 1.88 KB
/
docker-compose.yml
File metadata and controls
51 lines (48 loc) · 1.88 KB
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
# ⚠️ WARNING: This docker-compose file is mainly intended for development.
# For production deployments, please use the example docker-compose files
# provided in doc/deploy/ (examples available for SQLite, MariaDB and PostgreSQL).
---
services:
exelearning:
build: .
container_name: exelearning
hostname: exelearning # Important! To be called from chrome container
env_file:
- .env.dist
- .env # Overrides what is defined in .env
ports:
- "${APP_PORT:-8080}:${APP_PORT:-8080}" # Maps the host's $APP_PORT to the container's ${APP_PORT} internal port
restart: unless-stopped # Restart the container unless it is stopped manually
volumes:
# Persistent data only - no source code mounting
- mnt-data:/mnt/data:rw # Uploaded assets
- ./data:/app/data:rw # SQLite database persistence
# Always run in production mode (pre-compiled, no watchers)
# For development with hot reload, run locally: make up-local
environment:
PRE_CONFIGURE_COMMANDS:
POST_CONFIGURE_COMMANDS: |
echo "this is a test line 1"
echo "this is a test line 2"
# ⚠️ WARNING: Uncomment this for using mariadb as local database for development
# # Database settings
# DB_DRIVER: pdo_mysql
# DB_HOST: mariadb
# DB_PORT: 3306
# DB_NAME: "${DB_NAME:-exelearning}"
# DB_USER: "${DB_USER:-exelearning}"
# DB_PASSWORD: "${DB_PASSWORD:-exelearning}"
# DB_CHARSET: "${DB_CHARSET:-utf8mb4}"
# DB_SERVER_VERSION: 10.6
# depends_on:
# - mariadb
# mariadb:
# image: mariadb:12.0
# restart: unless-stopped
# environment:
# MARIADB_ROOT_PASSWORD: "${MARIADB_ROOT_PASSWORD:-root}"
# MARIADB_DATABASE: "${DB_NAME:-exelearning}"
# MARIADB_USER: "${DB_USER:-exelearning}"
# MARIADB_PASSWORD: "${DB_PASSWORD:-exelearning}"
volumes:
mnt-data: