forked from teras/openeclass-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (39 loc) · 1.18 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
version: '3'
services:
app:
build:
context: .
dockerfile: Dockerfile.app
image: openeclass/app
volumes:
- app:/openeclass
- ./config:/openeclass/config
- ./courses:/openeclass/courses
- ./video:/openeclass/video
depends_on:
- php
- db
ports:
- "8080:80"
php:
build:
context: .
dockerfile: Dockerfile.phpfpm
environment:
MYSQL_ROOT_PASSWORD: eclassdbpassword # The password of the database
MYSQL_LOCATION: db # The location of the database
image: openeclass/php
volumes:
- app:/openeclass
- ./config:/openeclass/config
- ./courses:/openeclass/courses
- ./video:/openeclass/video
db: # The location of the database
image: docker.io/mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: eclassdbpassword # The password of the database
command: --default-authentication-plugin=mysql_native_password
volumes:
- ./mysql:/var/lib/mysql
volumes:
app: