-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-production.yml
42 lines (38 loc) · 1.37 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
30
31
32
33
34
35
36
37
38
39
40
41
42
version: '3.3'
services:
notification-center:
#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/notification-center:main
command: npm run start:server:production
restart: always
environment:
- NODE_ENV=production
volumes:
# You should have a production.env file in the config folder
- type: bind
source: ./config
target: /usr/src/app/dist/config
- type: bind
source: ./config
target: /usr/src/app/config
- type: bind
source: ./logs
target: /usr/src/app/dist/logs
ports:
- "3032:3040"
redis-notification-center:
# it's better to not using latest tag, maybe latest tag have some breaking changes
image: bitnami/redis:5.0.9-debian-10-r142
container_name: redis-notification-center
environment:
- ALLOW_EMPTY_PASSWORD=yes
restart: always
volumes:
- redis-notification-center-data:/bitnami/redis/data
volumes:
redis-notification-center-data: