-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.override.with-proxy.yml
55 lines (51 loc) · 1.18 KB
/
docker-compose.override.with-proxy.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
54
55
version: '3'
services:
db:
volumes:
- studyplusorkr_db:/var/lib/postgresql/data
networks:
- back
environment:
POSTGRES_PASSWORD: (Replace with your db password)
web:
networks:
- back
environment:
DJANGO_SECRET_KEY: (Replace with your secret key)
DJANGO_DEBUG: 'False'
DJANGO_ALLOWED_HOSTS: study.plus.or.kr
VIRTUAL_HOST: study.plus.or.kr
VIRTUAL_PORT: 8000
LETSENCRYPT_HOST: study.plus.or.kr
volumes:
- studyplusorkr_static:/static
- studyplusorkr_upload:/upload
nginx:
image: nginx:latest
networks:
- reverse-proxy
- back
links:
- web
expose:
- 80
environment:
VIRTUAL_HOST: 'study.plus.or.kr'
LETSENCRYPT_HOST: 'study.plus.or.kr'
volumes:
- studyplusorkr_static:/static
- studyplusorkr_upload:/upload
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./nginx/vhost.d:/etc/nginx/vhost.d:rw
- ./nginx/conf.d:/etc/nginx/conf.d:rw
restart: always
volumes:
studyplusorkr_db:
studyplusorkr_static:
studyplusorkr_upload:
networks:
reverse-proxy:
external:
name: reverse-proxy
back:
driver: bridge