-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (55 loc) · 1.51 KB
/
docker-compose.yml
File metadata and controls
59 lines (55 loc) · 1.51 KB
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
55
56
57
58
59
# most of the configuration based on instruction from:
# https://github.com/nginx-proxy/acme-companion/blob/main/docs/Docker-Compose.md
# and
# https://hub.docker.com/r/nginxproxy/acme-companion#:~:text=and%20443.-,Basic%20usage,-(with%20the%20nginx
# just rewritten to docker compose config format version 3
services:
nginx-proxy:
container_name: nginx-proxy
build:
context: .
dockerfile: docker/nginx-proxy/Dockerfile
environment:
TRUST_DOWNSTREAM_PROXY: "false"
ports:
- "80:80"
- "443:443"
volumes:
- html:/usr/share/nginx/html
- vhost:/etc/nginx/vhost.d
- certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
restart: unless-stopped
networks:
- nginx-proxy
acme-companion:
# for SSL certificates generation
image: nginxproxy/acme-companion:2.6.3
container_name: nginx-proxy-acme
environment:
DEFAULT_EMAIL: letsencrypt@frsource.org
ACME_EMAIL: kkkubas@o2.pl
ACME_CA_URI: https://acme.zerossl.com/v2/DV90
ZEROSSL_API_KEY: ${ZEROSSL_API_KEY}
ACME_EAB_KID: ${ACME_EAB_KID}
ACME_EAB_HMAC_KEY: ${ACME_EAB_HMAC_KEY}
depends_on:
- nginx-proxy
volumes_from:
- nginx-proxy
volumes:
- certs:/etc/nginx/certs:rw
- acme:/etc/acme.sh
- /var/run/docker.sock:/var/run/docker.sock:ro
restart: unless-stopped
networks:
- nginx-proxy
volumes:
html:
certs:
vhost:
acme:
networks:
nginx-proxy:
driver: bridge
name: nginx-proxy