forked from nicholaskajoh/jack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
37 lines (37 loc) · 973 Bytes
/
docker-compose.prod.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
version: "3"
services:
traefik:
image: traefik
ports:
- "80:80"
- "8080:8080"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik/traefik.toml:/etc/traefik/traefik.toml:ro
- ./traefik/acme:/etc/traefik/acme
- ./traefik/.htpasswd:/etc/traefik/.htpasswd
app:
build: ./app
volumes:
- ./app:/usr/share/nginx/html
labels:
- "traefik.enable=true"
- "traefik.backend=app-be"
- "traefik.frontend.rule=Host:app.greymatterbay.com"
blog:
build: ./blog
volumes:
- ./blog:/usr/share/nginx/html
labels:
- "traefik.enable=true"
- "traefik.backend=blog-be"
- "traefik.frontend.rule=Host:blog.greymatterbay.com"
website:
build: ./website
volumes:
- ./website:/usr/share/nginx/html
labels:
- "traefik.enable=true"
- "traefik.backend=website-be"
- "traefik.frontend.rule=Host:greymatterbay.com"