-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-init.yml
More file actions
60 lines (55 loc) · 1.37 KB
/
docker-compose-init.yml
File metadata and controls
60 lines (55 loc) · 1.37 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
60
version: '3.3'
services:
plex:
image: plexinc/pms-docker
container_name: plex
ports:
- '32400:32400/tcp'
- '8324:8324/tcp'
- '32469:32469/tcp'
- '1900:1900/udp'
- '32410:32410/udp'
- '32412:32412/udp'
- '32413:32413/udp'
- '32414:32414/udp'
environment:
- PUID=1000
- PGID=1000
- PLEX_CLAIM=claim-vD3xwKgsyFR1qNpusHXt #optional
- TZ=America/Montevideo
networks:
- hello-net
webserver:
container_name: nginx
image: nginx:alpine
environment:
TZ: America/Montevideo
ports:
- '80:80'
- '443:443'
volumes:
- ./nginx/default.conf/:/etc/nginx/conf.d/default.conf
- ./log:/var/log/nginx
- certbot-acme:/var/www/letsencrypt/:ro
- certbot-certs:/etc/letsencrypt/:ro
- ./dhparam:/etc/ssl/certs
networks:
- hello-net
certbot:
image: certbot/certbot
container_name: certbot
volumes:
- certbot-acme:/var/www/letsencrypt/:rw
- certbot-certs:/etc/letsencrypt/:rw
- ./log:/var/log/letsencrypt
depends_on:
- webserver
command: certonly --webroot --staging --agree-tos --no-eff-email --email mlaino@gmail.com -w /var/www/letsencrypt -d etniapagana.com -d www.etniapagana.com
networks:
- hello-net
volumes:
certbot-acme:
certbot-certs:
networks:
hello-net:
driver: bridge