forked from synzen/MonitoRSS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
80 lines (78 loc) · 2.13 KB
/
docker-compose.prod.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
79
80
version: "3.8"
services:
# Feed-fetcher
# request-queue:
# image: s12v/elasticmq
# volumes:
# - ./elasticmq.conf:/etc/elasticmq/elasticmq.conf
# ports:
# - "9324:9324"
# - "9325:9325"
# mrss-postgres:
# restart: always
# healthcheck:
# test: ["CMD", "pg_isready", "-q", "-d", "postgres", "-U", "postgres"]
# timeout: 45s
# interval: 10s
# retries: 10
# environment:
# - POSTGRES_USER=postgres
# - POSTGRES_PASSWORD=postgres
# # Comment below to show mongo logs
# # logging:
# # driver: none
# image: postgres:14.1-alpine
# ports:
# - "5444:5432"
# volumes:
# - db:/var/lib/postgresql/data
# - ./sql/setup.sql:/docker-entrypoint-initdb.d/setup.sql
# mrss-feedfetcher:
# restart: on-failure:3
# build:
# context: services/feed-fetcher
# dockerfile: Dockerfile
# target: build
# ports:
# - "5000:5000"
# volumes:
# - ./:/usr/src/app
# - /usr/src/app/node_modules/
# command: npm run start:dev
# depends_on:
# - mrss-postgres
# - request-queue
# env_file:
# - .env.local
# environment:
# - POSTGRES_URI=postgres://postgres:postgres@mrss-postgres:5432/feedfetcher
# - AWS_SQS_QUEUE_URL=http://localhost:9324/queue/request-queue
# - AWS_SQS_QUEUE_SERVICE_ENDPOINT=http://localhost:9324
# - AWS_REGION=us-east-1
# - AWS_SQS_FAILED_URL_QUEUE_ENDPOINT=http://localhost:9324/queue/failed-requests-queue
# - AWS_SQS_FAILED_URL_QUEUE_REGION=us-east-1
# - FAILED_REQUEST_DURATION_THRESHOLD_HOURS=36
# Web
mrss-mongo:
restart: on-failure:5
command: mongod --port 27017
logging:
driver: none
image: mongo:latest
volumes:
- "db-data:/data/db"
mrss-web:
build:
context: services/backend-api
dockerfile: dockerfiles/web/Dockerfile
restart: on-failure:3
depends_on:
- mrss-mongo
ports:
- "8000:8000"
env_file: services/backend-api/.env.local
environment:
- NODE_ENV=local
- MONGODB_URI=mongodb://mrss-mongo:27017/rss
volumes:
db-data: