-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
83 lines (78 loc) · 2.14 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
version: '3.5'
services:
traefik:
image: traefik:v2.3
container_name: traefik
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--entrypoints.web.http.redirections.entryPoint.to=websecure"
- "--entrypoints.web.http.redirections.entryPoint.scheme=https"
- "--entrypoints.web.http.redirections.entrypoint.permanent=true"
- "--certificatesresolvers.myresolver.acme.tlschallenge=true"
- "--certificatesresolvers.myresolver.acme.email=srosset81@gmail.com"
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
networks:
- semapps
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- ./letsencrypt:/letsencrypt
- /var/run/docker.sock:/var/run/docker.sock:ro
middleware:
build:
context: ./middleware
args:
- SELECTED_BRANCH=techcico-instance
- SELECTED_DIR=src/middleware/boilerplates/pair-ldp-server
container_name: middleware
depends_on:
- fuseki
- redis
volumes:
- ./middleware/logs:/app/logs
- ./middleware/jwt:/app/jwt
- ./middleware/uploads:/app/uploads
networks:
- semapps
ports:
- "3000:3000"
expose:
- "3000"
labels:
- "traefik.enable=true"
- "traefik.http.routers.middleware.rule=Host(`data-techcico.semapps.org`)"
- "traefik.http.routers.middleware.entrypoints=websecure"
- "traefik.http.routers.middleware.tls.certresolver=myresolver"
fuseki:
image: stain/jena-fuseki:3.10.0
container_name: fuseki
volumes:
- ./data/fuseki:/fuseki
- ./data/staging:/staging
ports:
- "3030:3030"
expose:
- "3030"
networks:
- semapps
environment:
ADMIN_PASSWORD: "admin"
redis:
image: redis
container_name: redis
expose:
- "6379"
volumes:
- ./data/redis:/data
networks:
- semapps
command: ["redis-server", "--appendonly", "yes"]
networks:
semapps:
name: semapps_network