forked from lucasdiedrich/ojs
-
Notifications
You must be signed in to change notification settings - Fork 47
/
docker-compose.yml
56 lines (51 loc) · 1.57 KB
/
docker-compose.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
# File: docker-compose.yml
# Access via "http://localhost:8081"
#
# Call example:
# $ docker-compose up
version: "3.6"
networks:
inside:
external: false
services:
db:
image: mariadb:10.2
# env_file:
# - .env
container_name: "ojs_db_${COMPOSE_PROJECT_NAME:-demo}"
environment:
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD:-ojsPwd}"
MYSQL_DATABASE: "${OJS_DB_NAME:-ojs}"
MYSQL_USER: "${OJS_DB_USER:-ojs}"
MYSQL_PASSWORD: "${OJS_DB_PASSWORD:-ojsPwd}"
volumes:
- ./volumes/db:/var/lib/mysql
- ./volumes/dump:/docker-entrypoint-initdb.d
# - ./volumes/logs/db:/var/log/mysql
# - ./volumes/config/db.charset.conf:/etc/mysql/conf.d/charset.cnf
networks:
- inside
restart: always
ojs:
image: "pkpofficial/${OJS_IMAGE:-ojs}:${OJS_VERSION:-latest}"
# env_file:
# - .env
container_name: "ojs_app_${COMPOSE_PROJECT_NAME:-demo}"
hostname: "${COMPOSE_PROJECT_NAME:-demo}"
ports:
- "${HTTP_PORT:-8081}:80"
- "${HTTPS_PORT:-443}:443"
volumes:
- /etc/localtime:/etc/localtime
- ./volumes/private:/var/www/files
- ./volumes/public:/var/www/html/public
# - ./volumes/logs/app:/var/log/apache2
# # WARNING: You can only enable file-volumes if file exists in the container.
- ./volumes/config/ojs.config.inc.php:/var/www/html/config.inc.php
# - ./volumes/config/apache.htaccess:/var/www/html/.htaccess
# - ./volumes/php.custom.ini:/usr/local/etc/php/conf.d/custom.ini
networks:
- inside
depends_on:
- db
restart: always