-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.staging.yml
65 lines (60 loc) · 1.37 KB
/
docker-compose.staging.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
56
57
58
59
60
61
62
63
64
65
version: '3.8'
services:
django:
build:
context: .
dockerfile: ./compose/prod/django/Dockerfile
command: /start
depends_on:
- postgres
env_file: .env
expose:
- 8000
image: kudosbox_staging_django
volumes:
- static_volume:/app/staticfiles
postgres:
build:
context: .
dockerfile: ./compose/postgres/Dockerfile
env_file: .env
image: kudosbox_staging_postgres
volumes:
- postgres_data:/var/lib/postgresql/data/
nginx-proxy:
image: kudosbox_staging_nginx_proxy
container_name: nginx-proxy
build: ./compose/prod/nginx
restart: always
ports:
- 443:443
- 80:80
volumes:
- media_volume:/app/media
- static_volume:/app/staticfiles
- certs:/etc/nginx/certs
- html:/usr/share/nginx/html
- vhost:/etc/nginx/vhost.d
- /var/run/docker.sock:/tmp/docker.sock:ro
depends_on:
- django
nginx-proxy-letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
env_file:
- .env.staging.proxy-companion
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- certs:/etc/nginx/certs
- html:/usr/share/nginx/html
- vhost:/etc/nginx/vhost.d
- acme:/etc/acme.sh
depends_on:
- nginx-proxy
volumes:
media_volume:
postgres_data:
static_volume:
certs:
html:
vhost:
acme: