Reploy
Search…
Django/Redis/Postgres

Sample Repo

The repo for a sample django can be found here:

Sample file

1
services:
2
django:
3
port: 8000
4
model: url
5
runtime: python3
6
environment:
7
DEBUG: true
8
serve:
9
- pip3 -q install -r requirements.txt
10
- python3 manage.py runserver 0.0.0.0:8000
11
redis:
12
port: 6379
13
runtime: redis
14
do-not-expose: true
15
postgres:
16
port: 5432
17
runtime: postgres
18
# mount-path-container: /docker-entrypoint-initdb.d (optional if you need seed data)
19
# mount-path-volume: pg_data_dir (optional if you need seed data)
20
do-not-expose: true
21
environment:
22
POSTGRES_HOST_AUTH_METHOD: trust
23
POSTGRES_USER: postgres
24
POSTGRES_PASSWORD: postgres
25
POSTGRES_DB: postgres
Copied!
The reploy.yml file for this environment can also be found here:

Service Description

In the above file, we have three services, each of which describe a "process" or "container". A little bit about each service:
    The django service is a django application, which uses our python3 runtime.
Last modified 6mo ago