-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yml
96 lines (84 loc) · 2.21 KB
/
docker-compose.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# This configuration is the full-scale deployment config. Create
# custom configurations to extend this for devleopment.
version: '2'
services:
#
# Data stores
#
# [PostgreSQL] Database for Django API
postgres:
image: "postgres"
ports:
- "127.0.0.1:5432:5432"
env_file: ".env"
volumes:
- /data/postgres:/var/lib/postgresql/data
restart: always
# [MongoDB] Datastore for microservies
mongodb:
image: "mongo"
ports:
- "127.0.0.1:27017:27017"
volumes:
- /data/mongodb:/data/db
#
# Core apps
#
# [Django] Backend API (also has Nginx)
api:
image: "hackfsu/api"
build: "./api"
env_file: ".env"
ports:
- "127.0.0.1:8080:8080"
restart: always
volumes:
- /data/media:/usr/src/app/media
depends_on:
- qr
- push
- postgres
# [Express] Webapp
webapp:
image: "hackfsu/webapp"
env_file: ".env"
build: "./webapp"
ports:
- "127.0.0.1:3000:3000"
restart: always
#
# Microservices
#
# [Express] QR Service
# This service name is depended upon by the .env
# file and the API's nginx.conf
qr:
image: "hackfsu/qr-service"
build: "services/profile"
env_file: ".env"
ports:
- 127.0.0.1:8101:3000
depends_on:
- mongodb
# [gorush] FCM/APN Push Server
# This service actually sends the notifications.
gorush:
image: "appleboy/gorush"
ports:
- 127.0.0.1:8102:8088
volumes:
- ./services/gorush/config.yml:/config.yml
- ./services/gorush/${IOS_CERT}:/certs.p12
# [Express] Device ID Push Server
# This service tracks uploaded device IDs and their platform.
# When pushing notifactions, the notification is routed through
# this server.
push:
image: "hackfsu/push-service"
build: "services/push"
env_file: ".env"
ports:
- 127.0.0.1:8103:3000
depends_on:
- mongodb
- gorush