@@ -4,9 +4,13 @@ services:
4
4
5
5
npm :
6
6
image : nginxproxymanager:dev
7
+ container_name : " npm.dev"
7
8
build :
8
- context : ./
9
- dockerfile : ./dev/Dockerfile
9
+ context : ../
10
+ dockerfile : ./docker/dev/Dockerfile
11
+ args :
12
+ GOPROXY : " ${GOPROXY:-}"
13
+ GOPRIVATE : " ${GOPRIVATE:-}"
10
14
ports :
11
15
- 3080:80
12
16
- 3081:81
@@ -15,26 +19,38 @@ services:
15
19
DEVELOPMENT : ' true'
16
20
GOPROXY : " ${GOPROXY:-}"
17
21
GOPRIVATE : " ${GOPRIVATE:-}"
18
- YARN_REGISTRY : " ${DAB_YARN_REGISTRY :-}"
22
+ YARN_REGISTRY : " ${YARN_REGISTRY :-}"
19
23
NPM_LOG_LEVEL : ' debug'
20
24
PUID : 1000
21
25
PGID : 1000
22
26
volumes :
23
27
- /etc/localtime:/etc/localtime:ro
24
28
- ../:/app
25
29
- ./rootfs/var/www/html:/var/www/html
26
- - ../data:/data
27
30
- ./dev/resolv.conf:/etc/resolv.conf:ro
31
+ - npm_data_vol:/data
28
32
working_dir : /app
29
33
networks :
30
34
default :
31
35
aliases :
32
36
- website1.internal
33
37
- website2.internal
34
38
- website3.internal
39
+ restart : unless-stopped
35
40
36
- pebble :
41
+ npm-stepca :
42
+ image : nginxproxymanager/testca
43
+ container_name : " npm.stepca"
44
+ volumes :
45
+ - ./dev/resolv.conf:/etc/resolv.conf:ro
46
+ networks :
47
+ default :
48
+ aliases :
49
+ - ca.internal
50
+
51
+ npm-pebble :
37
52
image : letsencrypt/pebble
53
+ container_name : " npm.pebble"
38
54
command : pebble -config /test/config/pebble-config.json
39
55
environment :
40
56
PEBBLE_VA_SLEEPTIME : 2
@@ -47,17 +63,20 @@ services:
47
63
# required for https cert dns san
48
64
- pebble
49
65
50
- stepca :
51
- image : nginxproxymanager/testca
52
- volumes :
53
- - ./dev/resolv.conf:/etc/resolv.conf:ro
54
- networks :
55
- default :
56
- aliases :
57
- - ca.internal
66
+ npm-swagger :
67
+ image : swaggerapi/swagger-ui:latest
68
+ container_name : " npm.swagger"
69
+ ports :
70
+ - 3001:80
71
+ environment :
72
+ URL : " http://${SWAGGER_PUBLIC_DOMAIN:-127.0.0.1:3081}/api/schema"
73
+ PORT : ' 80'
74
+ depends_on :
75
+ - npm
58
76
59
- pdns :
77
+ npm- pdns :
60
78
image : pschiffe/pdns-mysql
79
+ container_name : " npm.pdns"
61
80
volumes :
62
81
- ' /etc/localtime:/etc/localtime:ro'
63
82
environment :
@@ -71,45 +90,38 @@ services:
71
90
PDNS_version_string : ' anonymous'
72
91
PDNS_default_ttl : 1500
73
92
PDNS_allow_axfr_ips : ' 127.0.0.0/8,192.0.0.0/8,10.0.0.0/8,172.0.0.0/8'
74
- PDNS_gmysql_host : pdns-db
93
+ PDNS_gmysql_host : npm- pdns-db
75
94
PDNS_gmysql_port : 3306
76
95
PDNS_gmysql_user : pdns
77
96
PDNS_gmysql_password : pdns
78
97
PDNS_gmysql_dbname : pdns
79
98
depends_on :
80
- - pdns-db
99
+ - npm- pdns-db
81
100
networks :
82
101
default :
83
102
aliases :
84
103
- ns1.pdns
85
104
- ns2.pdns
86
105
87
- pdns-db :
106
+ npm- pdns-db :
88
107
image : mariadb:10.7.1
108
+ container_name : " npm.pdns.db"
89
109
environment :
90
110
MYSQL_ROOT_PASSWORD : ' pdns'
91
111
MYSQL_DATABASE : ' pdns'
92
112
MYSQL_USER : ' pdns'
93
113
MYSQL_PASSWORD : ' pdns'
94
114
volumes :
95
- - pdns_mysql_vol :/var/lib/mysql
115
+ - npm_pdns_mysql_vol :/var/lib/mysql
96
116
- /etc/localtime:/etc/localtime:ro
97
117
- ./dev/pdns-db.sql:/docker-entrypoint-initdb.d/01_init.sql:ro
98
118
99
- dnsrouter :
119
+ npm- dnsrouter :
100
120
image : jc21/dnsrouter
121
+ container_name : " npm.dnsrouter"
101
122
volumes :
102
123
- ./dev/dnsrouter-config.json.tmp:/dnsrouter-config.json:ro
103
124
104
- swagger :
105
- image : swaggerapi/swagger-ui:latest
106
- ports :
107
- - 3001:80
108
- environment :
109
- URL : " http://${SWAGGER_PUBLIC_DOMAIN:-127.0.0.1:3081}/api/schema"
110
- PORT : ' 80'
111
- depends_on :
112
- - npm
113
-
114
125
volumes :
115
- pdns_mysql_vol :
126
+ npm_data_vol :
127
+ npm_pdns_mysql_vol :
0 commit comments