-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (72 loc) · 1.79 KB
/
Copy pathdocker-compose.yml
File metadata and controls
80 lines (72 loc) · 1.79 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
68
69
70
71
72
73
74
75
76
77
78
79
80
version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: ./Dockerfile.dev
env_file: ./.env.dev
ports:
- ${BACKEND_PORT}:${BACKEND_PORT}
volumes:
- ./backend/src:/app/src
- ./shared/dist:/app/node_modules/shared
- ./backend/test:/app/test
depends_on:
- db
- redis
- rabbitmq
frontend:
build:
context: ./frontend
dockerfile: ./Dockerfile.dev
env_file: ./.env.dev
ports:
- ${FRONTEND_PORT}:${FRONTEND_PORT}
volumes:
- ./frontend/src:/app/src
- ./shared/dist:/app/node_modules/shared
depends_on:
- backend
db:
image: postgres:14.2-alpine
restart: on-failure
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- ${DB_PORT}:5432
redis:
image: redis:latest
ports:
- ${REDIS_PORT}:${REDIS_PORT}
env_file: ./.env.dev
command: redis-server --requirepass ${REDIS_PASS} --port ${REDIS_PORT}
rabbitmq:
image: rabbitmq:3.12.3-management
ports:
- ${RABBITMQ_PORT}:5672
- 15672:15672
env_file: ./.env.dev
invoice:
build:
context: ./microservices/invoice
dockerfile: ./Dockerfile.dev
env_file: ./.env.dev
ports:
- ${INVOICE_SERVICE_PORT}:${INVOICE_SERVICE_PORT}
volumes:
- ./microservices/invoice/src:/app/invoice/src
- ./shared/dist:/app/invoice/node_modules/shared
- ./microservices/invoice/test:/app/invoice/test
depends_on:
- rabbitmq
- gotenberg
- backend
gotenberg:
image: thecodingmachine/gotenberg:7
ports:
- ${GOTENBERG_PORT}:${GOTENBERG_PORT}
command:
- "gotenberg"
- "--api-port=${GOTENBERG_PORT}"