-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yml
53 lines (53 loc) · 1.08 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
version: '3.8'
services:
postgres:
image: postgres:alpine
restart: on-failure
environment:
POSTGRES_PASSWORD: postgres
redis:
image: redis:alpine
nginx:
depends_on:
- api
- client
restart: always
build:
context: ./nginx
dockerfile: Dockerfile.dev
ports:
- "3050:80"
api:
build:
context: ./server
dockerfile: Dockerfile.dev
volumes:
- '/usr/src/app/node_modules'
- './server:/usr/src/app'
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- PG_USER=postgres
- PG_HOST=postgres
- PG_DATABASE=postgres
- PG_PASSWORD=postgres
- PG_PORT=5432
client:
build:
context: ./client
dockerfile: Dockerfile.dev
volumes:
- /usr/src/app/node_modules
- ./client:/usr/src/app
environment:
- WDS_SOCKET_PORT=0
worker:
build:
context: ./worker
dockerfile: Dockerfile.dev
volumes:
- /usr/src/app/node_modules
- ./worker:/usr/src/app
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379