-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
140 lines (130 loc) · 3.5 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
version: "2"
volumes:
db-volume:
services:
db:
image: postgres:11
ports:
- "5432:5432"
volumes:
- ./db/data:/var/lib/postgresql/data
db-dev:
image: postgres
ports:
- "5432:5432"
volumes:
- db-volume:/var/lib/postgresql/data
nats:
image: nats
ports:
- "4222:4222"
- "8222:8222"
influxdb:
image: influxdb:1.7
ports:
- "8086:8086"
volumes:
- ./influxdb:/var/lib/influxdb
chronograf:
image: chronograf:1.7
ports:
- "8888:8888"
volumes:
- ./chronograf:/var/lib/chronograf
environment:
- GOOGLE_CLIENT_ID=$GOOGLE_CLIENT_ID
- GOOGLE_CLIENT_SECRET=$GOOGLE_CLIENT_SECRET
- GOOGLE_DOMAINS=$GOOGLE_DOMAINS
- PUBLIC_URL=$PUBLIC_URL
- TOKEN_SECRET=$TOKEN_SECRET
- INFLUX_HOST=$INFLUX_HOST
- INFLUX_PORT=$INFLUX_PORT
- INFLUXDB_URL=http://$INFLUX_HOST:$INFLUX_PORT
reverse-proxy:
image: nginx
ports:
- "80:80"
- "9090:9090"
volumes:
- ./reverse-proxy/conf.d/sotah.conf:/etc/nginx/conf.d/sotah.conf:ro
- ./reverse-proxy/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- chronograf
sotah-server-base:
image: ihsw/sotah-server
volumes:
- ./sotah-server:/tmp/sotah-server
environment:
- CLIENT_ID=$CLIENT_ID
- CLIENT_SECRET=$CLIENT_SECRET
- NATS_HOST=nats
sotah-server-api:
extends: sotah-server-base
depends_on:
- nats
command: --is-local -c /tmp/sotah-server/config.json --cache-dir /tmp/sotah-server/data -v debug api
sotah-server-live-auctions:
extends: sotah-server-base
depends_on:
- nats
command: --is-local -c /tmp/sotah-server/config.json --cache-dir /tmp/sotah-server/data -v debug live-auctions
sotah-server-pricelist-histories:
extends: sotah-server-base
depends_on:
- nats
command: --is-local -c /tmp/sotah-server/config.json --cache-dir /tmp/sotah-server/data -v debug pricelist-histories
sotah-server-base-production:
extends: sotah-server-base
image: gcr.io/$PROJECT_ID/server
environment:
- PROJECT_ID=$PROJECT_ID
- INFLUX_HOST=$INFLUX_HOST
- NATS_HOST=$NATS_HOST
- NATS_PORT=$NATS_PORT
sotah-server-base-fn:
extends: sotah-server-base-production
environment:
- NATS_HOST=$NATS_HOST
- NATS_PORT=$NATS_PORT
sotah-server-prod-api:
extends: sotah-server-base-production
command: --cache-dir /tmp/sotah-server/data -v debug prod-api
sotah-server-prod-metrics:
extends: sotah-server-base-production
command: --cache-dir /tmp/sotah-server/data -v debug prod-metrics
sotah-server-prod-live-auctions:
extends: sotah-server-base-production
command: --cache-dir /tmp/sotah-server/data -v debug prod-live-auctions
sotah-server-prod-pricelist-histories:
extends: sotah-server-base-production
command: --cache-dir /tmp/sotah-server/data -v debug prod-pricelist-histories
sotah-server-prod-items:
extends: sotah-server-base-production
command: --cache-dir /tmp/sotah-server/data -v debug prod-items
sotah-api-base:
image: ihsw/sotah-api
ports:
- "8080:8080"
environment:
- NATS_HOST=nats
- NATS_PORT=4222
- DB_HOST=db
sotah-api:
extends: sotah-api-base
depends_on:
- nats
- db
volumes:
- ./sotah-server/data/item-icons:/tmp/item-icons
sotah-api-test:
extends: sotah-api-base
depends_on:
- nats
- db
sotah-api-production:
extends: sotah-api-base
image: gcr.io/$PROJECT_ID/api
depends_on:
- nats
environment:
- IS_GCE_ENV=1