-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
67 lines (62 loc) · 1.43 KB
/
docker-compose-dev.yml
File metadata and controls
67 lines (62 loc) · 1.43 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
55
56
57
58
59
60
61
62
63
64
65
66
67
services:
postgres:
image: 'postgres:latest'
container_name: postgres
environment:
- POSTGRES_PASSWORD=postgres_password
redis:
image: 'redis:latest'
container_name: redis
nginx:
restart: always
build:
context: ./nginx
dockerfile: Dockerfile.dev
container_name: nginx
ports:
- '8080:80' # Change Nginx to use port 8080 on the host
- '3080:3080' # Expose WebSocket port separately for client
depends_on:
- api
- client
api:
build:
context: ./server
dockerfile: Dockerfile.dev
image: complex/api:latest
container_name: api
volumes:
- /app/node_modules
- ./server:/app
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- POSTGRES_USER=postgres
- POSTGRES_HOST=postgres
- POSTGRES_DATABASE=postgres
- POSTGRES_PASSWORD=postgres_password
- POSTGRES_PORT=5432
worker:
build:
context: ./worker
dockerfile: Dockerfile.dev
image: complex/worker:latest
container_name: worker
volumes:
- /app/node_modules
- ./worker:/app
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
client:
build:
context: ./client
dockerfile: Dockerfile.dev
image: complex/client:latest
container_name: client
volumes:
- /app/node_modules
- ./client:/app
environment:
- HOST=0.0.0.0
- WDS_SOCKET_PORT=3080