-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-ojsdev.yml
executable file
·64 lines (58 loc) · 2.06 KB
/
docker-compose-ojsdev.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File: docker-compose.yml
# Access via "http://localhost:8080"
#
# Call example:
# $ docker-compose -f docker-compose-ulb.yml up
version: "3.6"
networks:
inside:
external: false
services:
db:
image: mariadb:10.2
env_file:
- .env
container_name: "ojsdev_db_ulb"
environment:
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_DATABASE: "${MYSQL_DATABASE}"
MYSQL_USER: "${MYSQL_USER}"
MYSQL_PASSWORD: "${MYSQL_PASSWORD}"
volumes:
- /data/ojsdev/db:/var/lib/mysql
- /data/ojsdev/logs/db:/var/log/mysql
- ./resources/mariadb.cnf:/etc/mysql/conf.d/mariadb.cnf
networks:
- inside
restart: always
ojsdev:
# image: pkpofficial/ojs:${OJS_VERSION_ULB_DEV}
build: .
image: ojs:${OJS_VERSION_ULB_DEV}
env_file:
- .env
container_name: "ojsdev_app_ulb"
hostname: "${COMPOSE_PROJECT_NAME}"
restart: always
volumes:
- /etc/localtime:/etc/localtime
- /data/ojsdev/private:/var/www/files
- /data/ojsdev/public:/var/www/html/public
- /data/ojsdev/logs/app:/var/log/apache2
- /data/ojsdev/config/ojs.config.inc.php:/var/www/html/config.inc.php:ro
- /data/ojsdev/config/php.ulb.ini:/etc/php7/conf.d/php.ulb.ini:ro
- /data/ojsdev/config/ojsdev.conf:/etc/apache2/conf.d/ojs.conf:ro
- /data/ojsdev/config/ssl/ojs.pem:/etc/ssl/apache2/server.pem:ro
- /data/ojsdev/config/ssl/ojs.key:/etc/ssl/apache2/server.key:ro
# ULB custom made plugins
- /data/ojsdev/plugins/ulb-theme:/var/www/html/plugins/themes/ulb-theme
- /data/ojsdev/plugins/searchMarkPlugin:/var/www/html/plugins/generic/searchMarkPlugin
- /data/ojsdev/plugins/setRemoteUrlPlugin:/var/www/html/plugins/generic/setRemoteUrlPlugin
- /data/ojsdev/config/favicon.ico:/var/www/html/favicon.ico
# # WARNING: You can only enable file-volumes if file exists in the container.
# - ./config/apache.htaccess:/var/www/html/.htaccess
# - ./php.custom.ini:/usr/local/etc/php/conf.d/custom.ini
networks:
- inside
depends_on:
- db