forked from minecrafthome/minecrafthome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·86 lines (81 loc) · 2.38 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: "3.3"
volumes:
mysql:
project:
results:
secrets:
letsencrypt:
services:
traefik:
image: "traefik:2.3@sha256:3f5c5a46ccff636a9e726961f123638bd6854191040072d860fc15bbcee3e184"
container_name: "traefik"
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.le.acme.httpchallenge=true"
- "--certificatesresolvers.le.acme.httpchallenge.entrypoint=web"
- "--certificatesresolvers.le.acme.storage=/letsencrypt/acme.json"
ports:
- "443:443"
- "8080:8080"
volumes:
- "letsencrypt:/letsencrypt"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
mysql:
container_name: "mcath_mysql"
build:
context: images/mysql
ports:
- "3306:3306"
volumes:
- "mysql:/var/lib/mysql"
makeproject:
container_name: "mcath_mkproject"
build:
context: images/makeproject
args:
- BOINC_USER
- PROJECT_ROOT
depends_on:
- mysql
volumes:
- "project:$PROJECT_ROOT.dst"
- "secrets:/run/secrets"
hostname: makeproject
environment:
- URL_BASE
- PROJECT
apache:
container_name: "mcath_boinc"
build:
context: images/apache
args:
- BOINC_USER
- PROJECT_ROOT
hostname: $PROJECT
depends_on:
- mysql
volumes:
- "project:$PROJECT_ROOT"
- "results:/results"
- "secrets:/run/secrets"
- "/dev/null:/run/secrets/keys/code_sign_private"
- "/var/run/docker.sock:/var/run/docker.sock"
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.home.addprefix.prefix=/minecrafthome"
- "traefik.http.routers.home.entrypoints=websecure"
- "traefik.http.routers.home.rule=(PathPrefix(`/`) && Host(`minecraftathome.com`))"
- "traefik.http.routers.home.middlewares=home@docker"
- "traefik.http.routers.home.tls.certresolver=le"
- "traefik.http.routers.local.entrypoints=websecure"
- "traefik.http.routers.local.rule=(PathPrefix(`/minecrafthome`) && Host(`minecraftathome.com`))"
- "traefik.http.routers.local.tls.certresolver=le"
tty: true
environment:
- URL_BASE
- PROJECT