-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (48 loc) · 1 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
version: "3.4"
services:
nginx:
container_name: npm-nginx
image: npm_nginx:latest
build:
context: ./nginx
args:
- DOMAIN=domain.com
- NPM_PORT=4873
dockerfile: ./nginx.dockerfile
ports:
- 80:80
- 443:443
volumes:
- ./certs:/etc/letsencrypt
- ./certs-data:/data/letsencrypt
networks:
- npm-registry-network
logging:
driver: "json-file"
options:
max-size: "1000k"
max-file: "3"
registry:
container_name: npm-registry
image: npm_registry:latest
build:
context: ./verdaccio
dockerfile: ./verdaccio.dockerfile
ports:
- 4873:4873
volumes:
- ./verdaccio/conf:/verdaccio/conf
- ./verdaccio/storage:/verdaccio/storage:z
networks:
- npm-registry-network
logging:
driver: "json-file"
options:
max-size: "1000k"
max-file: "3"
volumes:
registry:
driver: local
networks:
npm-registry-network:
driver: bridge