-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
78 lines (72 loc) · 1.91 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
69
70
71
72
73
74
75
76
77
78
version: '3'
services:
proxy:
build:
context: ./nginx
dockerfile: Dockerfile.dev
image: gustavenrique/proxy:dev
container_name: gustavenrique/fib-proxy
restart: always
ports:
- 3000:80
depends_on:
- fib-api
- fib-ui
postgres:
image: 'postgres:16-bookworm'
container_name: postgres
restart: always
environment:
- POSTGRES_PASSWORD=dev_password#
redis:
image: 'redis:7.2-bookworm'
container_name: redis
restart: always
fib-api:
build:
context: ./api
dockerfile: Dockerfile.dev
image: gustavenrique/fib-api:dev
container_name: fib-api
restart: always
volumes:
- /app/node_modules
- ./api:/app
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=dev_password#
- POSTGRES_DATABASE=postgres
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
- PORT=5000
depends_on:
- postgres
- redis
fib-worker:
build:
context: ./worker
dockerfile: Dockerfile.dev
image: gustavenrique/fib-worker:dev
container_name: fib-worker
restart: unless-stopped
volumes:
- /app/node_modules
- ./worker:/app
environment:
- REDIS_CONNECTION=redis://redis:6379
depends_on:
- redis
fib-ui:
build:
context: ./ui
dockerfile: Dockerfile.dev
image: gustavenrique/fib-ui:dev
container_name: fib-ui
restart: always
volumes:
- /app/node_modules
- ./ui:/app
environment:
- WDS_SOCKET_PORT=3000