-
Notifications
You must be signed in to change notification settings - Fork 99
/
docker-compose-develop.yml
43 lines (39 loc) · 1.29 KB
/
docker-compose-develop.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
version: '3.3'
services:
feathers-giveth:
#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-develop.yml pull
# 2. docker-compose -f docker-compose-develop.yml down
# 3. docker-compose -f docker-compose-develop.yml up -d
image: ghcr.io/giveth/feathers-giveth:develop
environment:
- logDir=/usr/src/app/logs
- NODE_ENV=develop
- LOG_LEVEL=info
restart: always
volumes:
# You should have a develop.json file in the config folder
- type: bind
source: ./config
target: /usr/src/app/config
# Make sure create the log path in the server
- type: bind
source: ./logs
target: /usr/src/app/logs
ports:
- "3032:3030"
depends_on:
- redis-giveth
redis-giveth:
# 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-giveth
environment:
- ALLOW_EMPTY_PASSWORD=yes
restart: always
volumes:
- redis-data:/bitnami/redis/data
volumes:
redis-data: