forked from ritua2/BOINCatTACC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (53 loc) · 1.19 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
57
58
59
version: "3"
# Largely based on Marius Millea's boinc-server-docker arcitecture
# Ports are changed to allow for more services
volumes:
mysql:
project:
results:
services:
mysql:
image: boinc/server_mysql:latest
build: images/mysql
network_mode: bridge
volumes:
- "mysql:/var/lib/mysql"
environment:
- MYSQL_ROOT_PASSWORD=
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
ports:
- "3306:3306"
makeproject:
image: boinc/server_makeproject:latest-b2d
build:
context: images/makeproject
dockerfile: Dockerfile.b2d
network_mode: bridge
links:
- mysql
volumes:
- "project:/root/project.dst"
environment:
- URL_BASE=$URL_BASE
- PROJECT=$PROJECT
apache:
image: boinc/server_apache:latest-b2d
build:
context: images/apache
dockerfile: Dockerfile.b2d
hostname: $PROJECT
network_mode: bridge
links:
- mysql
volumes:
- "project:/root/project"
- "results:/results"
- "/var/run/docker.sock:/var/run/docker.sock"
ports:
- "80:80"
- "5000:5000"
- "5050-5100:5050-5100"
tty: true
environment:
- URL_BASE=$URL_BASE
- PROJECT=$PROJECT