-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
54 lines (54 loc) · 1.13 KB
/
docker-compose.dev.yml
File metadata and controls
54 lines (54 loc) · 1.13 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
version: '3.8'
services:
sellaf-api:
container_name: 'sellaf-v2-api'
image: 'sellaf-v2-api-image'
build:
context: .
dockerfile: Dockerfile
target: development
env_file:
- ./.env
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
ports:
- 4005:4005
- 9229:9229
depends_on:
db-server:
condition: service_healthy
redis:
condition: service_healthy
platform: "linux/amd64"
command: [ "/bin/sh", "-c", "/wait-for-pg-and-exec.sh" ]
db-server:
image: postgres:13-alpine
ports:
- "5436:5432"
env_file:
- ./.env.db
volumes:
- postgres_data:/var/lib/postgresql/data/
healthcheck:
test: "exit 0" #further research on this
adminer:
image: adminer
depends_on:
- db-server
restart: always
ports:
- 8088:8080
redis:
image: redis:6.2-alpine
restart: always
ports:
- "6379:6379"
command: [ "redis-server", "--appendonly", "yes" ]
volumes:
- redis:/data
healthcheck:
test: "exit 0" #further research on this
volumes:
postgres_data:
redis: