-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (43 loc) · 928 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (43 loc) · 928 Bytes
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
version: '3.8'
services:
postgres:
container_name: postgres
image: postgres:15
volumes:
- postgres_volume:/var/lib/postgresql/data
- ./docker/postgres-dev-init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
POSTGRES_USER: adonis
POSTGRES_PASSWORD: adonis
ports:
- 5432:5432
redis:
container_name: redis
image: redis:7-alpine
volumes:
- redis_volume:/data
ports:
- 6379:6379
app:
container_name: app
restart: always
depends_on:
- postgres
- redis
build:
context: .
target: dependencies
ports:
- ${PORT}:${PORT}
- 9229:9229
env_file:
- .env
environment:
- PG_HOST=postgres
- REDIS_HOST=redis
volumes:
- ./:/home/node/app
command: dumb-init node ace serve --watch --node-args="--inspect=0.0.0.0"
volumes:
postgres_volume:
redis_volume: