-
Notifications
You must be signed in to change notification settings - Fork 0
/
obou-coffee-v1.3.tar
83 lines (72 loc) · 10 KB
/
obou-coffee-v1.3.tar
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
docker-compose.yml 0000664 0001751 0001751 00000002343 14027700254 013170 0 ustar amit amit version: "3.1"
services:
nginx:
image: nginx:latest
container_name: espresso
ports:
- "80:80"
volumes:
- espresso_web:/static
- espresso_uploads:/uploads
- ./config/nginx:/etc/nginx/conf.d
depends_on:
- web
web:
container_name: espresso-web
hostname: espresso-web
build:
context: src
dockerfile: Dockerfile
command: bash -c "python manage.py makemigrations && python manage.py migrate && gunicorn espresso.wsgi -b 0.0.0.0:8000"
image: gabbarsingh/obou-coffee
volumes:
- ./src:/code
- espresso_web:/static
- espresso_uploads:/uploads
depends_on:
- db
environment:
- DJANGO_PRODUCTION=1
db:
image: postgres:10-alpine
container_name: espresso-db
hostname: espresso-db
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
POSTGRES_USER: pgadmin
POSTGRES_PASSWORD: $pgadmin_pwd
POSTGRES_DB: espresso
admin:
image: adminer
container_name: espresso-db-client
hostname: espresso-db-client
depends_on:
- db
ports:
- 8080:8080
volumes:
pgdata:
espresso_web:
espresso_uploads: config/ 0000775 0001751 0001751 00000000000 14025776022 011002 5 ustar amit amit config/nginx/ 0000775 0001751 0001751 00000000000 14025776022 012125 5 ustar amit amit config/nginx/conf.conf 0000664 0001751 0001751 00000000577 14026707373 013736 0 ustar amit amit # inside config/nginx/conf.conf in source code
upstream web {
ip_hash;
server web:8000;
}
server {
location /static/ {
autoindex on;
alias /static/;
}
location /uploads/ {
autoindex on;
alias /uploads/;
}
location / {
proxy_pass http://web/;
}
listen 80;
server_name localhost;
}