-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose-dev.yml
68 lines (68 loc) · 1.4 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: '3.7'
services:
app:
container_name: app-dev
volumes:
- ./config-demo:/app/config/
- ./src:/app/src
- ./dist_client:/app/dist_client
env_file:
- .env
build:
dockerfile: Dockerfile
context: ./
command: yarn server:watch
restart: always
depends_on:
postgres:
condition: service_healthy
ports:
- '3000:3000'
postgres:
container_name: postgres
image: postgres:14
volumes:
- ./postgres_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U test']
interval: 10s
timeout: 5s
retries: 5
restart: always
environment:
POSTGRES_USER: test
POSTGRES_PASSWORD: test
POSTGRES_DB: test
ports:
- '5432:5432'
migrations:
build:
context: ./
volumes:
- ./config:/app/config/
container_name: migrations
working_dir: /app
command: yarn migrations:up
depends_on:
postgres:
condition: service_healthy
css_watcher:
build:
context: ./
container_name: css_watcher
tty: true
volumes:
- ./:/app
- /app/node_modules
working_dir: /app
command: yarn client:css:watch
js_watcher:
build:
context: ./
container_name: js_watcher
tty: true
volumes:
- ./:/app
- /app/node_modules
working_dir: /app
command: yarn client:js:watch