-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
62 lines (54 loc) · 1.53 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
########################################################################
# pypiserver docker-compose example
########################################################################
version: "3.3"
services:
pypiserver:
image: pypiserver/pypiserver:latest
volumes:
- type: bind
source: ./data/packages
target: /packages
command: --hash-algo=sha256 -a . -P . /packages
networks:
- pypiserver_network
nginx:
image: nginx:stable-alpine
ports:
- "80:80"
- "443:443"
volumes:
- type: bind
source: ./config/nginx/conf.d
target: /etc/nginx/conf.d
- type: bind
source: ./config/nginx/auth
target: /etc/nginx/auth
- type: bind
source: ./data/certbot/conf
target: /etc/letsencrypt
- type: bind
source: ./data/certbot/www
target: /var/www/certbot
depends_on:
- pypiserver
networks:
- pypiserver_network
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
certbot:
image: certbot/certbot:latest
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
localtunnel:
image: defunctzombie/localtunnel-server:latest
command: "--port 3000"
ports:
- "3000:3000"
networks:
- pypiserver_network
networks:
pypiserver_network:
driver: bridge