mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-09-20 07:16:05 +08:00
Add files to dockerize wildduck
This commit is contained in:
parent
0b09f1d87e
commit
2fee49abfe
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}
|
26
docker-compose.yml
Normal file
26
docker-compose.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
version: "3.7"
|
||||
services:
|
||||
wildduck:
|
||||
network_mode: host
|
||||
build: .
|
||||
ports:
|
||||
- "8080:8080"
|
||||
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…
Reference in a new issue