-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.staging.yml
54 lines (53 loc) · 1.63 KB
/
docker-compose.staging.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
version: "3.3"
services:
traefik:
image: "traefik:v2.10"
container_name: "Epsilon-Traefik"
command:
- "--log.level=DEBUG"
- "--api.insecure=true"
- "--api.dashboard=false"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
# HTTPS / Certificates
- "--certificatesresolvers.letsencrypt.acme.email=typiqally@gmail.com"
- "--certificatesresolvers.letsencrypt.acme.storage=/letsencrypt/acme.json"
- "--certificatesresolvers.letsencrypt.acme.tlschallenge=true"
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- "../traefik/letsencrypt:/letsencrypt"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
frontend:
container_name: Epsilon-Frontend
image: "nealgeilen/epsilon-frontend:acc"
labels:
- "traefik.enable=true"
- "traefik.http.routers.frontend.rule=Host(`epsilon.deltafhict.nl`)"
- "traefik.http.routers.frontend.tls.certresolver=letsencrypt"
env_file:
- .env.staging
api:
container_name: Epsilon-API
image: "nealgeilen/epsilon-api:acc"
labels:
- "traefik.enable=true"
- "traefik.http.routers.api.rule=Host(`epsilon.deltafhict.nl`) && PathPrefix(`/api`)"
- "traefik.http.routers.api.tls.certresolver=letsencrypt"
environment:
- ASPNETCORE_URLS=http://+:80;
env_file:
- .env.staging
db:
container_name: Epsilon-DB
image: mariadb:10
env_file:
- .env.staging
ports:
- 3306:3306
volumes:
- /epsilon-data:/var/lib/mysql