File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# django-deploy
22initial project
3-
4- # For playing
5- docker run -it --rm -v "$PWD":/code python:3.8 bash
Original file line number Diff line number Diff line change 11from typing import Text , Optional
2- import yaml
32
43
54def generate (#project_name: Text,
@@ -40,35 +39,11 @@ def write_nginx_docker_file():
4039 return print (e .args )
4140
4241
43- def write_docker_compose (version : int = 3 ,
44- nginx_dockerfile : Text = 'nginx.Dockerfile' ,
45- nginx_ports : list = ['0.0.0.0:443:443' ],
46- nginx_volume : list = ['./static:/var/www/static' ],
47- nginx_network_alias : list = ['acmecorp.com' ]
48- ):
49- docker_compose = {}
42+ def write_docker_compose ():
43+ pass
5044
51- docker_compose ['version' ] = version
52- docker_compose ['services' ] = {}
53- docker_compose ['services' ]['nginx' ] = {
54- 'build' : {
55- 'context' : '.' ,
56- 'dockerfile' : nginx_dockerfile
57- },
58- 'ports' : nginx_ports ,
59- 'networks' :{
60- 'default' :{
61- 'aliases' : nginx_network_alias
62- }
63- },
64- 'depends_on' :['web' ]
65- }
66-
67- return yaml .dump (docker_compose , default_flow_style = False )
68-
69-
7045
46+ def generate_conf_nginx ():
47+ pass
7148
7249
73- def generate_conf_nginx ():
74- pass
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments