-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
48 lines (44 loc) · 1.14 KB
/
docker-compose.yaml
File metadata and controls
48 lines (44 loc) · 1.14 KB
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
services:
db:
image: postgres:15
restart: always
# set shared memory limit when using docker compose
shm_size: 128mb
volumes:
- postgres-data:/var/lib/postgresql/data
- ./init-scripts/01-create-app-user.sql:/docker-entrypoint-initdb.d/01-create-app-user.sql
- ./init-scripts/03-setup-rls.sql:/docker-entrypoint-initdb.d/03-setup-rls.sql
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgrespassword
POSTGRES_DB: mydatabase
ports:
- 5432:5432
shadow-db:
image: postgres:15
restart: always
volumes:
- postgres-shadow-data:/var/lib/postgresql/data
- ./init-scripts/02-create-shadow-user.sql:/docker-entrypoint-initdb.d/02-create-shadow-user.sql
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgrespassword
POSTGRES_DB: mydatabase_shadow
ports:
- 5433:5432
adminer:
image: adminer
restart: always
ports:
- 8080:8080
redis:
image: redis
restart: always
volumes:
- redis-data:/data
ports:
- 6379:6379
volumes:
postgres-data:
postgres-shadow-data:
redis-data: