-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yml
53 lines (53 loc) · 1.49 KB
/
docker-compose-dev.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
version: '3.5'
services:
web:
build:
context: .
args:
- HTTP_PROXY=$HTTP_PROXY
- http_proy=$http_proxy
- HTTPS_PROXY=$HTTPS_PROXY
- https_proxy=$https_proxy
- FTP_PROXY=$FTP_PROXY
- ftp_proxy=$ftp_proxy
- NO_PROXY=$NO_PROXY
- no_proxy=$no_proxy
image: steveltn/https-portal:1
container_name: ${HTTPS_PORTAL_CONTAINER_NAME}
restart: always
volumes:
- ./nginx/ssl_certs:/var/lib/https-portal
- ./nginx/conf/mysite_nginx.conf.temp:/etc/nginx/conf.d/mysite_nginx.conf.temp:ro
- ./nginx/script/21-set-nginx-env:/etc/cont-init.d/21-set-nginx-env:ro
- ./nginx/uwsgi_params:/etc/nginx/uwsgi_params:ro
- ./static:/static
ports:
- '80:80'
- '443:443'
env_file:
- .env
environment:
DOMAINS: ${DOMAIN_NAME} -> http://${HTTPS_PORTAL_CONTAINER_NAME}:${NGINX_WATCH_PORT}/
STAGE: 'staging'
depends_on:
- django
django:
build:
context: .
args:
- HTTP_PROXY=$HTTP_PROXY
- http_proy=$http_proxy
- HTTPS_PROXY=$HTTPS_PROXY
- https_proxy=$https_proxy
- FTP_PROXY=$FTP_PROXY
- ftp_proxy=$ftp_proxy
- NO_PROXY=$NO_PROXY
- no_proxy=$no_proxy
container_name: ${DJANGO_CONTAINER_NAME}
volumes:
- .:/code
expose:
- ${DJANGO_CONTAINER_PORT}
env_file:
- .env
command: uwsgi --socket :${DJANGO_CONTAINER_PORT} --module neoflowProject.wsgi --chdir /code