-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
53 lines (50 loc) · 1.07 KB
/
compose.yaml
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
---
include:
- path: db/storage.yaml
project_directory: .
- path: db/secrets.yaml
project_directory: .
services:
web:
image: djangops:base
build:
context: .
dockerfile: src/Dockerfile
target: final-stage
container_name: django_web
restart: no
depends_on:
db:
condition: service_healthy
required: true
extends:
file: db/config/connection-params.yaml
service: web.interface
secrets:
- source: django-secret-key
target: secret_key
uid: "1000"
gid: "101"
mode: 0400
networks:
- front-tier
- back-tier
ports:
- name: web-insecure
target: 8000
host_ip: 127.0.0.1
published: "8080"
protocol: tcp
app_protocol: http
environment:
- SECRET_KEY_FILE=/run/secrets/secret_key
env_file:
- path: .envs/django.env
required: true
- path: .envs/database.env
required: true
networks:
front-tier: {}
secrets:
django-secret-key:
file: docker/secrets/secret_key.txt