forked from ulsdevteam/pkp-oauth
-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yaml
53 lines (49 loc) · 1.55 KB
/
docker-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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File: docker-compose.yml
# Access via "http://localhost:8081" or "https://localhost:8443"
#
# Example:
# Start an OJS 3.3.0-11 instance for master branch on port 8081
# $ docker compose --env-file ./docker/ojs_3_3.env up
# Copy OJS Codebase for autocomplete to docker/ojs directory
# $ docker cp openid_3_3_x_dev_ojs:/var/www/html docker/ojs
version: "3.6"
networks:
inside:
external: false
services:
db:
image: mariadb:latest
container_name: ${OJS_DB_CONTAINER_NAME}
environment:
MYSQL_ROOT_PASSWORD: "ojs"
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: "ojs"
MYSQL_PASSWORD: "ojs"
volumes:
- ./docker/volumes/db:/var/lib/mysql
- ./docker/volumes/logs/db:/var/log/mysql
- ./docker/volumes/config/db.charset.conf:/etc/mysql/conf.d/charset.cnf
- ./docker/volumes/migration:/docker-entrypoint-initdb.d
networks:
- inside
restart: always
ojs:
image: pkpofficial/${OJS_VERSION}
container_name: ${OJS_CONTAINER_NAME}
hostname: ${OJS_CONTAINER_NAME}
ports:
- "8081:80"
- "8443:443"
volumes:
- ./:${PLUGIN_PATH}
- ${PLUGIN_PATH}/docker # empty docker dir in container.
- ${PLUGIN_PATH}/.github # empty .github dir in container.
- ${PLUGIN_PATH}/.git # empty .github dir in container.
- ${PLUGIN_PATH}/.idea # empty .idea dir in container.
- ./docker/ojs.dev.config.inc.php:/var/www/html/config.inc.php
- ./docker/volumes/logs/app:/var/log/apache2
networks:
- inside
depends_on:
- db
restart: always