-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose-local-postgres-redis.yml
55 lines (48 loc) · 1.41 KB
/
docker-compose-local-postgres-redis.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
45
46
47
48
49
50
51
52
53
54
version: '3.3'
services:
impact-graph-postgres:
# Use this postgres image https://github.com/Giveth/postgres-givethio
image: ghcr.io/giveth/postgres-givethio:latest
restart: always
environment:
- POSTGRES_DB=givethio
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- PGDATA=/var/lib/postgresql/data/pgdata
ports:
- "5442:5432"
volumes:
- db-data:/var/lib/postgresql/data
impact-graph-postgres-test:
# CAUTION: Running tests will delete all records of this db, so just use this container for test
# For running application use above container port: 5442
# Use this postgres image https://github.com/Giveth/postgres-givethio
image: ghcr.io/giveth/postgres-givethio:latest
restart: always
environment:
- POSTGRES_DB=givethio
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- PGDATA=/var/lib/postgresql/data/pgdata
ports:
- "5443:5432"
volumes:
- db-data-test:/var/lib/postgresql/data
redis-giveth:
# it's better to not using the latest tag, maybe latest tag have some breaking changes
image: redis:7.2.0-alpine3.18
container_name: redis-giveth
environment:
- REDIS_ALLOW_EMPTY_PASSWORD=yes
restart: always
ports:
- "6379:6379"
volumes:
- redis-data:/data
volumes:
db-data:
db-data-test:
redis-data:
networks:
giveth:
external: true