-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-local-postgres-redis.yml
49 lines (45 loc) · 1.47 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
version: '3.3'
services:
siwe-microservice-postgress:
image: postgres:14.2-bullseye
container_name: siwe-microservice-postgress
restart: always
environment:
- POSTGRES_DB=microservices
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- PGDATA=/var/lib/postgresql/data_new/pgdata
ports:
- "5443:5432"
volumes:
- siwe-microservice-postgres-data:/var/lib/postgresql/data
siwe-microservice-postgress-test:
# CAUTION: Running tests will delete all records of this db, so just use this container for test
# For running application use above container
image: postgres:14.2-bullseye
container_name: siwe-microservice-postgress-test
restart: always
environment:
- POSTGRES_DB=microservices
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- PGDATA=/var/lib/postgresql/data_new/pgdata
ports:
- "5444:5432"
volumes:
- siwe-microservice-postgres-data-test:/var/lib/postgresql/data
siwe-microservice-redis:
# 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: siwe-microservice-redis
environment:
- ALLOW_EMPTY_PASSWORD=yes
restart: always
ports:
- "6489:6379"
volumes:
- siwe-microservice-redis-data:/bitnami/redis/data
volumes:
siwe-microservice-postgres-data:
siwe-microservice-postgres-data-test:
siwe-microservice-redis-data: