-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (40 loc) · 1.05 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
version: "2"
volumes:
mongo-data:
services:
nginx:
image: nginx:latest
container_name: filtercloud-nginx
ports:
- "8001:8001/tcp"
volumes:
- ./config/nginx:/etc/nginx/conf.d
- ./static:/www/data
depends_on:
- api
environment:
- VIRTUAL_HOST=filter.poe.gg
- VIRTUAL_NETWORK=nginx-proxy
- VIRTUAL_PORT=80
- LETSENCRYPT_HOST=filter.poe.gg
api:
build: .
container_name: filtercloud-api
command: bash -c "gunicorn -w 4 --forwarded-allow-ips='*' --proxy-allow-from='*' -b 0.0.0.0:8081 api.api:app"
depends_on:
- db
links:
- db
volumes:
- ./src:/src
- ./templates:/templates
expose:
- "8081"
db:
image: mongo:3.6
container_name: filtercloud-db
volumes:
- mongo-data:/data/db
expose:
- "27017"