-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdjango-test-app.tfvars.json
108 lines (108 loc) · 3.31 KB
/
django-test-app.tfvars.json
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
"region": "eu-central-1",
"cidr_main_vpc": "10.1.0.0/16",
"public_subnets": [
"10.1.1.0/24",
"10.1.3.0/24"
],
"private_subnets": [
"10.1.2.0/24"
],
"enable_nat": false,
"ingress_rule": "http-80-tcp",
"assign_public_ip": true,
"desired_tasks_to_run": 1,
"containers_definition": [
{
"name": "django",
"image": "jimisa/djangoapp:latest",
"portMappings": [
{
"containerPort": 8000,
"hostPort": 8000
}
],
"mountPoints": [
{
"sourceVolume": "staticfiles",
"containerPath": "/code/staticfiles",
"readonly":false,
"persistant_storage":false
}
],
"command": [
"gunicorn",
"djangoproject.wsgi:application",
"--bind",
"0.0.0.0:8000",
"--workers=4"
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "awslog-django-test-app",
"awslogs-region": "eu-central-1",
"awslogs-stream-prefix": "awslogs-django"
}
},
"readonlyRootFilesystem": false
},
{
"name": "nginx",
"image": "jimisa/nginx-proxy-django:latest",
"portMappings": [
{
"containerPort": 80,
"hostPort": 80
}
],
"mountPoints": [
{
"sourceVolume": "staticfiles",
"containerPath": "/home/app/web/staticfiles",
"readonly": true,
"persistant_storage": false
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "awslog-django-test-app",
"awslogs-region": "eu-central-1",
"awslogs-stream-prefix": "awslogs-nginx"
}
},
"readonlyRootFilesystem": false
},
{
"name": "mongoDB",
"image": "mongo:latest",
"portMappings": [
{
"containerPort": 27017,
"hostPort": 27017
}
],
"mountPoints": [
{
"sourceVolume": "mongo_data",
"containerPath": "/data/db",
"readonly": false,
"persistant_storage": false
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "awslog-django-test-app",
"awslogs-region": "eu-central-1",
"awslogs-stream-prefix": "awslogs-mongo"
}
},
"readonlyRootFilesystem": false
}
]
}