-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.innovate.yml
43 lines (41 loc) · 1.08 KB
/
docker-compose.innovate.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
version: '3.7'
services:
api:
command: /bin/sh -c "python manage.py migrate && gunicorn --bind 0.0.0.0:8000 AGOLAccountRequestor.wsgi"
networks:
- default
labels:
- "com.centurylinklabs.watchtower.scope=innovate"
restart: unless-stopped
environment:
VIRTUAL_HOST: ${VIRTUAL_HOST}
db:
volumes:
- ./mysql_data:/var/lib/mysql
networks:
- default
web:
build:
context: .
dockerfile: Dockerfile.web
environment:
VIRTUAL_HOST: ${VIRTUAL_HOST}
VIRTUAL_PORT: 80
VIRTUAL_PROTO: http
LETSENCRYPT_HOST: ${VIRTUAL_HOST}
LETSENCRYPT_EMAIL: [email protected]
command: /bin/sh -c "envsubst '$$VIRTUAL_HOST' < /etc/nginx/conf.d/template.nginx > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
expose:
- "80"
depends_on:
- api
image: docker.itgis.innovateteam.com/request_web
networks:
- default
- proxy
labels:
- "com.centurylinklabs.watchtower.scope=innovate"
restart: unless-stopped
networks:
proxy:
name: nginx_proxy_default