-
-
Notifications
You must be signed in to change notification settings - Fork 68
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (32 loc) · 748 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (32 loc) · 748 Bytes
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
include:
- docker-compose.common.yml
services:
nginx:
image: nginx
labels:
- "traefik.enable=true"
- "traefik.http.routers.web.rule=
Host(`127.0.0.1`)
|| Host(`localhost`)"
- "traefik.http.routers.web.entrypoints=web"
volumes:
- ./etc/nginx/conf.d/:/etc/nginx/conf.d/
- /var/www/html:/var/www/html
- static:/var/purldb/static/
depends_on:
- web
restart: always
traefik:
image: "traefik:v2.11"
container_name: "traefik"
hostname: "traefik"
ports:
- "80:80"
- "443:443"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./traefik.yml:/traefik.yml:ro"
networks:
default:
name: purldb
external: true