-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (40 loc) · 819 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (40 loc) · 819 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
42
43
44
45
46
47
48
# docker-compose.yml
# Azure News - SMS story collector
# db:
# library/mongo
# Base mongodb container, exposing port 27017
db:
command: --nojournal --smallfiles --quiet
image: mongo
# cache:
# library/redis
# Base redis container, exposing port 6379
cache:
image: redis
# web:
# web - built from web/Dockerfile
# Serves Azure News front-end, port 3000
web:
build: web/
links:
- cache
- db
ports:
- "3000" # allows docker to assign random port
environment:
SERVICE_80_NAME: http
SERVICE_NAME: web
SERVICE_TAGS: production
# sms:
# sms - built from sms/Dockerfile
# Receives and stores SMS news submissions, port 4000
sms:
build: sms/
links:
- db
ports:
- "4000:4000"
environment:
SERVICE_80_NAME: http
SERVICE_NAME: sms
SERVICE_NAME: production