-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
48 lines (44 loc) · 1.21 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
version: '2'
services:
ojsdb:
image: mysql:5.7
restart: always
ports:
- 3306:3306
volumes:
- ./sql_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD:
MYSQL_DATABASE: ojs
MYSQL_USER: ojs_user
MYSQL_PASSWORD:
networks:
- nginx
ojs:
image: nginx:latest
restart: always
ports:
- 80:80
- 443:443
volumes:
- ./conf/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./conf/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./html:/usr/share/nginx/html
- ./files:/usr/share/nginx/files
- ./var/log/log/nginx:/var/log/nginx
- ./letsencrypt:/etc/letsencrypt
networks:
- nginx
ojsphp:
build: ./php
restart: always
volumes:
- ./html:/usr/share/nginx/html
- ./files:/usr/share/nginx/files
- ./conf/php/www.conf:/usr/local/etc/php-fpm.d/www.conf
- ./conf/php/php.ini:/usr/local/etc/php/php.ini
networks:
- nginx
networks:
nginx:
external: true