-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-staging.yml
44 lines (38 loc) · 1.35 KB
/
docker-compose-staging.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
43
44
version: '3.3'
services:
siwe-microservice:
#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-staging.yml pull
# 2. docker-compose -f docker-compose-staging.yml down
# 3. docker-compose -f docker-compose-staging.yml up -d
image: ghcr.io/giveth/siweauthmicroservice:staging
restart: always
command: npm run start:server:staging
environment:
- NODE_ENV=staging
volumes:
# You should have a staging.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:
- "3000:3000"
redis-siwe-microservice:
# 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-siwe-microservice
environment:
- ALLOW_EMPTY_PASSWORD=yes
restart: always
volumes:
- redis-siwe-microservice-data:/bitnami/redis/data
volumes:
redis-siwe-microservice-data: