-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-local-postgres-redis.yml
49 lines (45 loc) · 1.51 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:
notification-center-postgress:
image: postgres:14.2-bullseye
container_name: notification-center-postgress
restart: always
environment:
- POSTGRES_DB=notification-center
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- PGDATA=/var/lib/postgresql/data_new/pgdata
ports:
- "5445:5432"
volumes:
- notification-center-postgres-data:/var/lib/postgresql/data
notification-center-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: notification-center-postgress-test
restart: always
environment:
- POSTGRES_DB=notification-center
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- PGDATA=/var/lib/postgresql/data_new/pgdata
ports:
- "5446:5432"
volumes:
- notification-center-postgres-data-test:/var/lib/postgresql/data
notification-center-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: notification-center-redis
environment:
- ALLOW_EMPTY_PASSWORD=yes
restart: always
ports:
- "6490:6379"
volumes:
- notification-center-redis-data:/bitnami/redis/data
volumes:
notification-center-postgres-data:
notification-center-postgres-data-test:
notification-center-redis-data: