-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcompose.yaml
More file actions
36 lines (33 loc) · 951 Bytes
/
compose.yaml
File metadata and controls
36 lines (33 loc) · 951 Bytes
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
# -------------------------------------------------
# Managed by modulesync - DO NOT EDIT
# -------------------------------------------------
---
services:
app:
build: .
user: app
command: /app/manage.py runserver 0:8000
volumes:
- .:/app:cached
environment:
SHELL: /bin/bash
IPYTHONDIR: /app/.ipython
HISTFILE: /app/.bash_history
PYTHONPATH: /app # make app available without installation
restart: "no"
depends_on:
- postgres
postgres:
image: docker.io/postgres:18-alpine
restart: unless-stopped
shm_size: 256m
user: postgres
command: -c 'fsync=off' -c 'effective_io_concurrency=10' -c 'max_connections=200' -c 'wal_level=logical' # yamllint disable-line rule:line-length
volumes:
- db_postgres_data:/var/lib/postgresql/
environment:
POSTGRES_USER: app
POSTGRES_PASSWORD: app
POSTGRES_DB: app
volumes:
db_postgres_data: {}