forked from instantdb/instant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yml
49 lines (47 loc) · 1008 Bytes
/
docker-compose-dev.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
services:
postgres:
image: public.ecr.aws/z9j8u5b3/instant-public:postgres-13
ports:
- '8890:5432'
environment:
POSTGRES_PASSWORD: pass
POSTGRES_USER: instant
POSTGRES_DB: instant
volumes:
- 'backend-db:/var/lib/postgresql/data'
networks:
- application
healthcheck:
test: ["CMD", "pg_isready", "-U", "instant"]
interval: 10s
timeout: 5s
retries: 5
command:
- "postgres"
- "-c"
- "wal_level=logical"
- "-c"
- "max_replication_slots=4"
- "-c"
- "max_wal_senders=4"
server:
depends_on:
- postgres
build:
context: ./
dockerfile: Dockerfile-dev
environment:
DATABASE_URL: "postgresql://instant:pass@postgres:5432/instant"
NREPL_BIND_ADDRESS: "0.0.0.0"
volumes:
- './:/app'
ports:
- '8888:8888'
- '6005:6005'
networks:
- application
networks:
application:
driver: bridge
volumes:
backend-db: