-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
63 lines (59 loc) · 1.39 KB
/
docker-compose.dev.yml
File metadata and controls
63 lines (59 loc) · 1.39 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
services:
postgres:
image: postgres:16
container_name: base-acl-postgres
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${DB_USER} -d ${DB_DATABASE}']
timeout: 45s
interval: 10s
retries: 10
restart: always
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_DATABASE}
ports:
- '5432:5432'
expose:
- 5432
volumes:
- database:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- app-network
redis:
image: redis:latest
container_name: base-acl-redis
restart: always
ports:
- '6379:6379'
environment:
REDIS_PASSWORD: ${REDIS_PASSWORD:-redis}
command: redis-server --requirepass ${REDIS_PASSWORD:-redis}
volumes:
- redis-data:/data
networks:
- app-network
postgrest:
image: postgrest/postgrest:latest
container_name: base-acl-postgrest
restart: always
ports:
- '3000:3000'
environment:
PGRST_DB_URI: postgres://${DB_USER}:${DB_PASSWORD}@postgres:5432/${DB_DATABASE}
PGRST_DB_SCHEMA: public
PGRST_DB_ANON_ROLE: web_anon
PGRST_JWT_SECRET: ${APP_KEY}
PGRST_SERVER_PORT: 3000
depends_on:
- postgres
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
database:
redis-data: