-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (39 loc) · 854 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (39 loc) · 854 Bytes
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
services:
api:
container_name: html_for_pdf-api
build:
context: .
dockerfile: docker/api/Dockerfile
args:
PORT: ${PORT}
RABBITMQ_URL: ${RABBITMQ_URL}
ports:
- '${PORT:-3000}:3000'
env_file:
- .env
environment:
- PORT=${PORT}
restart: unless-stopped
networks:
- html_for_pdf_net
worker:
container_name: html_for_pdf-worker
build:
context: .
dockerfile: docker/worker/Dockerfile
args:
RABBITMQ_URL: ${RABBITMQ_URL}
env_file:
- .env
environment:
- RABBITMQ_URL=${RABBITMQ_URL}
- WORKER_CONCURRENCY=${WORKER_CONCURRENCY}
- PDF_QUEUE_NAME=${PDF_QUEUE_NAME}
restart: unless-stopped
depends_on:
- api
networks:
- html_for_pdf_net
networks:
html_for_pdf_net:
driver: bridge