-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathdocker-compose.yml
56 lines (43 loc) · 1.21 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
version: '2'
services:
db:
image: postgres
environment:
POSTGRES_PASSWORD: pypi-server
POSTGRES_USER: pypi-server
POSTGRES_DB: pypi-server
volumes:
- ./postgresql:/var/lib/postgresql/data
pypi_server:
image: mosquito/pypi-server:latest
links:
- db
restart: always
ports:
- 8080:80
volumes:
- ./packages:/var/lib/pypi-server
environment:
# Database URL. Use `sqlite3:///` or `mysql://` when needed
DB: "postgres://pypi-server:pypi-server@db/pypi-server"
## if you want to set PGUSER and PGPASSWORD in env
#PGUSER: pypi-server
#PGPASSWORD: pypi-server
## By default random
#SECRET: changeme
## Override standard port
#PORT: 80
## Set "X-Headers" (e.g. X-Forwarded-For)
#PROXY_MODE: 1
## Set 0 when you want to disable proxying from global pypi
#PYPI_PROXY: 1
## Tread-pool size (default cpu_count * 2)
#POOL_SIZE: 4
## Maximum proxy clients count
#MAX_CLIENTS: 25
## PYPI server url
#PYPI_SERVER: https://pypi.python.org
## Use for attach a debugger
#DEBUG: 0
## Compress responses (default False)
#GZIP: 0