-
Notifications
You must be signed in to change notification settings - Fork 58
/
docker-compose.yml
36 lines (34 loc) · 1.25 KB
/
docker-compose.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
version: '3.5'
services:
django:
build:
context: ../../
dockerfile: deploy/Docker/django/Dockerfile
# providing the build and the image directive automatically tags the image
# automatic tagging is performed with environment variables provided
# through the Makefile and results in a tag with either a git commit hash
# or a datetime stamp (see Makefile.deployment)
image: ${DPS_BUILD_NAME_PREFIX}/django:${DPS_BUILD_ID}
env_file:
./env.production
expose:
- "8000"
volumes:
- static-files:/webapp/run/static
nginx:
build:
context: ./
dockerfile: nginx/Dockerfile
# providing the build and the image directive automatically tags the image
# automatic tagging is performed with environment variables provided
# through the Makefile and results in a tag with either a git commit hash
# or a datetime stamp (see Makefile.deployment)
image: ${DPS_BUILD_NAME_PREFIX}/nginx:${DPS_BUILD_ID}
env_file:
./env.production
ports:
- "80:80"
volumes:
- static-files:/var/www/django_files/static
volumes:
static-files: