-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (52 loc) · 1.22 KB
/
docker-compose.yml
File metadata and controls
54 lines (52 loc) · 1.22 KB
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
version: '3'
# Docker Compose on local machine
# > docker-compose up -d
services:
app:
build:
context: .
dockerfile: containers/app/Dockerfile
image: registry.motius.de/blueprints/django-api:latest
environment:
- DB_HOST
- DB_NAME
- DB_PW
- DB_USER
- DB_PORT
- DJANGO_SETTINGS_MODULE
- SITE_URL=django-kompose.minikube.local
depends_on:
- db
ports:
- 8000:8000
volumes:
- media:/usr/src/app/media
- static:/usr/src/app/static
- .:/usr/src/app
labels:
kompose.service.expose: "django-kompose.minikube.local"
kompose.image-pull-secret: "registry.motius.de"
kompose.controller.type: "deployment"
kompose.image-pull-secret: "dpr-secret"
kompose.volume.size: "1Gi"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/status/?format=json"]
interval: 10s
timeout: 5s
retries: 3
db:
image: bitnami/postgresql:12
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_PASSWORD=${DB_PW}
- POSTGRES_USER=${DB_USER}
expose:
- 5432
volumes:
- db:/bitnami/postgresql
labels:
kompose.volume.size: "1Gi"
volumes:
static:
media:
db: