This repository was archived by the owner on Nov 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose-deploy-dev.yml
More file actions
33 lines (33 loc) · 1.5 KB
/
docker-compose-deploy-dev.yml
File metadata and controls
33 lines (33 loc) · 1.5 KB
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
version: '3'
services:
notadev:
image: notaorg/nota-dev:latest
command: node bin/www
ports:
- "3001:3000" # host:container
#- "27017:27017"
#- "27018:27018"
environment:
- NODE_ENV=production
- DATABASEURI=mongodb://${dbUsernameDev}:${dbPasswordDev}@${dbAddress}/${dbName}
- ACTIVATE_EMAIL=${ACTIVATE_EMAIL} # string value to turn on emails
- RESET_URI=${RESET_URI} # uri to tell user where to reset their password
- FROM_HEADER=${FROM_HEADER} # from header, shows subject and sender address
- MAILGUN_API_KEY=${MAILGUN_API_KEY} # mailgun api
- MAILGUN_DOMAIN=${MAILGUN_DOMAIN} # mailgun key
container_name: notadev # restarts container unless we explicitly stop it
restart: unless-stopped
watchtower:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# check for new image every 3600 secs (1hr) and only watch watchtower, notadev, and notaprod containers
# remove old images after updating watched containers
# this compose file will have the one watchtower image to control all of the various
# related nota containers
command: watchtower notadev notaprod --interval 3600 --cleanup
# provide slack web hook url to get notifications when containers update
environment:
- WATCHTOWER_NOTIFICATIONS=slack
- WATCHTOWER_NOTIFICATION_SLACK_HOOK_URL=${WATCHTOWER_NOTIFICATION_SLACK_HOOK_URL}
restart: unless-stopped # restarts container unless we explicitly stop it