-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose-base.yml
56 lines (51 loc) · 1.19 KB
/
compose-base.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
47
48
49
50
51
52
53
54
55
56
version: '3'
services:
nginx-proxy:
image: nginxproxy/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- nginx-conf:/etc/nginx/conf.d
- nginx-vhost:/etc/nginx/vhost.d
- nginx-html:/usr/share/nginx/html
- nginx-dhparam:/etc/nginx/dhparam
- nginx-certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
- bridge
- nginx
nginx-proxy-acme:
image: nginxproxy/acme-companion
container_name: nginx-proxy-acme
volumes_from:
- nginx-proxy
volumes:
- nginx-certs:/etc/nginx/certs:rw
- nginx-acme:/etc/acme.sh
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- bridge
portainer:
image: portainer/portainer-ce
container_name: portainer
volumes:
- portainer
- /var/run/docker.sock:/var/run/docker.sock
networks: nginx
environment:
LETSENCRYPT_HOST: portainer.hubspace.de
VIRTUAL_HOST: portainer.hubspace.de
VIRTUAL_PORT: 9000
volumes:
nginx-conf:
nginx-vhost:
nginx-html:
nginx-dhparam:
nginx-certs:
nginx-acme:
portainer:
networks:
nginx:
external: false