generated from pankajthekush/flask_boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
40 lines (36 loc) · 995 Bytes
/
docker-compose.yaml
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
version: '2.4'
services:
lpostal:
image: pkumdev/libpostal-flask:v1
init: true
logging:
driver: json-file
options:
max-size: 2m
build:
context: .
dockerfile: Dockerfile
ports:
- 8000
command: >
/bin/sh -c "gunicorn -w 10 --threads=2 --bind 0.0.0.0:8000 --timeout 600 wsgi:app --preload"
networks:
- xtnet
nginx.lpostal:
image: nginx:1.22.0
volumes:
- ./wait-for-it.sh:/wait-for-it.sh
- ./lpostal.conf:/etc/nginx/conf.d/default.conf
command: >
/bin/sh -c "/wait-for-it.sh -t 0 lpostal:8000 -- echo libpostal-rest is up;
service nginx start; tail -f /dev/null"
ports:
- 80:80
environment:
- NGINX_HOST=foobar.com
- NGINX_PORT=80
networks:
- xtnet
networks:
xtnet:
external: true