-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.deploy.yml
43 lines (37 loc) · 1.05 KB
/
docker-compose.deploy.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
version: "3.8"
services:
# API
api:
build:
context: ./
dockerfile: Dockerfile
restart: unless-stopped
volumes:
- .:/var/www
networks:
- bridge
# Webserver
nginx:
image: nginx:1.19.8-alpine
restart: unless-stopped
volumes:
- .:/var/www
- ./nginx:/etc/nginx/conf.d
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
- "traefik.http.routers.chestgranted.middlewares=redirect-to-https"
- "traefik.http.routers.chestgranted.rule=Host(`chestgranted.haakon.wtf`)"
- "traefik.http.routers.chestgranted.entrypoints=web"
- "traefik.http.routers.chestgranted-secure.rule=Host(`chestgranted.haakon.wtf`)"
- "traefik.http.routers.chestgranted-secure.tls=true"
- "traefik.http.routers.chestgranted-secure.tls.certresolver=myresolver"
- "traefik.docker.network=traefik-proxy"
networks:
- bridge
- traefik-proxy
networks:
bridge:
driver: bridge
traefik-proxy:
external: true