-
-
Notifications
You must be signed in to change notification settings - Fork 165
/
Copy pathdocker-compose.yml
42 lines (38 loc) · 1 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: '2'
services:
db:
image: mariadb:10.1
volumes:
- mysql:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: randomepassword
MYSQL_DATABASE: webwork
MYSQL_USER: webworkWrite
MYSQL_PASSWORD: passwordRW
app:
build: .
image: webwork
depends_on:
- db
- r
volumes:
- ".:/opt/webwork/webwork2"
# OLD approach put the courses tree under webwork2/.data/courses
#- "./.data/courses:/opt/webwork/courses"
# NEW appoach puts the courses tree in a separate tree outside of webwork2/
- "../ww-docker-data/courses:/opt/webwork/courses"
# Uncomment the line below to use local OPL for development
#- "../opl:/opt/webwork/libraries/webwork-open-problem-library"
# Uncomment the line below to use local PG for development
#- "../pg:/opt/webwork/pg"
ports:
- "8080:80"
environment:
DEV: 0
r:
image: ubcctlt/rserve
ports:
- "6311:6311"
volumes:
mysql: