forked from marcdurham/nginx-certbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (45 loc) · 1.16 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
version: '3.4'
services:
nginx:
container_name: nginx
restart: unless-stopped
volumes:
- ./data:/data
- ./data/nginx/etc/nginx:/etc/nginx
- ./data/certbot/etc/letsencrypt:/etc/letsencrypt
- ./data/shared/var/www/static:/var/www/static
build:
context: .
dockerfile: proxy/Dockerfile
ports:
- "80:80"
- "443:443"
- "8200:8200"
links:
- vault
entrypoint: /bin/sh -c /data/nginx.entrypoint.sh
certbot:
container_name: cerbot
restart: unless-stopped
volumes:
- ./data:/data
- ./data/certbot/etc/letsencrypt:/etc/letsencrypt
- ./data/shared/var/www/static:/var/www/static
build:
context: .
dockerfile: certbot/Dockerfile
depends_on:
- nginx
entrypoint: /bin/sh -c /data/certbot.entrypoint.sh
vault:
image: vault
container_name: vault
restart: always
volumes:
- ./data/vault/certs:/vault/certs
- ./data/vault/logs:/vault/logs
- ./data/vault/file:/vault/file
- ./data/vault/config:/vault/config
cap_add:
- IPC_LOCK
entrypoint: vault server -config=/vault/config/vault.json