blob: 4a8118610bea89979f761c97357330ccd07ea5a7 (
plain) (
blame)
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
|
version: 0.1.0
name: pysite
description: |
Our community website, built on Django and PostgreSQL.
#namespace: python-discord
maintainers:
- name: Johannes Christ
email: [email protected]
---
version: "3.6"
services:
django:
image: registry.gitlab.com/python-discord/projects/site/django:latest
ports:
- "127.0.0.1:4000:4000"
environment:
DATABASE_URL: "postgres://${pg_user}:${pg_passwd}@${pg_host}/${pg_db}"
DEBUG: 0
SECRET_KEY: "${secret_key}"
depends_on:
- migrator
- postgres
postgres:
image: postgres:11-alpine
environment:
POSTGRES_DB: "${pg_db}"
POSTGRES_USER: "${pg_user}"
POSTGRES_PASSWORD: "${pg_passwd}"
migrator:
image: registry.gitlab.com/python-discord/projects/site/django:latest
environment:
DATABASE_URL: "postgres://${pg_user}:${pg_passwd}@${pg_host}/${pg_db}"
DEBUG: 0
SECRET_KEY: "${secret_key}"
command: "python manage.py migrate"
depends_on:
- postgres
---
pg_user: pysite
pg_db: pysite
pg_passwd: ''
pg_host: postgres
secret_key: 'suitable-for-development-only'
# vim: ft=yaml:
|