mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-09-25 14:36:47 +08:00
Merge pull request #1 from thebongy/master
Add files to dockerize wildduck
This commit is contained in:
commit
d2fbc7c39d
3 changed files with 47 additions and 0 deletions
3
.dockerignore
Normal file
3
.dockerignore
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
node_modules
|
||||||
|
Dockerfile*
|
||||||
|
docker-compose*.yml
|
14
Dockerfile
Normal file
14
Dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
FROM node:lts-alpine
|
||||||
|
|
||||||
|
RUN apk add --no-cache make git dumb-init python
|
||||||
|
|
||||||
|
WORKDIR /wildduck
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN npm install --production
|
||||||
|
|
||||||
|
ENV WILDDUCK_APPDIR=/wildduck \
|
||||||
|
WILDDUCK_CONFIG=/wildduck/config/default.toml
|
||||||
|
|
||||||
|
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
||||||
|
CMD node ${WILDDUCK_APPDIR}/server.js --config=${WILDDUCK_CONFIG}
|
30
docker-compose.yml
Normal file
30
docker-compose.yml
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
version: "3.7"
|
||||||
|
services:
|
||||||
|
wildduck:
|
||||||
|
network_mode: host
|
||||||
|
build: .
|
||||||
|
ports:
|
||||||
|
- "8080:8080"
|
||||||
|
- "143:143"
|
||||||
|
- "110:110"
|
||||||
|
- "993:993"
|
||||||
|
- "995:995"
|
||||||
|
depends_on:
|
||||||
|
- redis
|
||||||
|
- mongo
|
||||||
|
|
||||||
|
redis:
|
||||||
|
network_mode: host
|
||||||
|
image: redis:alpine
|
||||||
|
volumes:
|
||||||
|
- /data
|
||||||
|
expose:
|
||||||
|
- 6379
|
||||||
|
mongo:
|
||||||
|
network_mode: host
|
||||||
|
image: mongo
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- /data/db
|
||||||
|
ports:
|
||||||
|
- 27017
|
Loading…
Add table
Reference in a new issue