-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-production.yml
29 lines (27 loc) · 1.18 KB
/
docker-compose-production.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
version: '3.3'
services:
givEconomy-notification-service:
#see https://github.com/docker/build-push-action/tree/releases/v1#tag_with_ref
# is sometime you want to rollback you can change the tag manually in server( not commit to git)
# from master to your desired commit hash and the run command:
# 1. docker-compose -f docker-compose-production.yml pull
# 2. docker-compose -f docker-compose-production.yml down
# 3. docker-compose -f docker-compose-production.yml up -d
image: ghcr.io/giveth/giveconomy-notification-service:main
command: npm run start:docker:server
environment:
- NODE_ENV=production
restart: always
volumes:
# You should have a production.env file in the config folder
# We should bind config in two path, I think because running migrations(ts) needs one and running
# application(js) read from another path, if we change migrations two run them as js files then we need just on binding
- type: bind
source: ./config
target: /usr/src/app/config
- type: bind
source: ./logs
target: /usr/src/app/logs
- type: bind
source: ./data
target: /usr/src/app/data