-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
42 lines (39 loc) · 912 Bytes
/
compose.yaml
File metadata and controls
42 lines (39 loc) · 912 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
37
38
39
40
41
42
services:
postgres:
image: postgres:16
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
volumes:
- postgres_data:/var/lib/postgresql/data/
restart: unless-stopped
redis:
image: redis:7
command: redis-server --save 60 1 --appendonly yes --loglevel warning
restart: unless-stopped
django:
build:
context: ./launchpad
dockerfile: Dockerfile
args:
PYTHON_VERSION: 3.13.5
REQUIREMENTS: requirements/dev.pip
UNAME: ${USER}
UID: ${UID}
volumes:
- ./launchpad:/home/${USER}/app
env_file:
- .env
environment:
DEBUG: 1
DJANGO_SUPERUSER_EMAIL: super@example.com
DJANGO_SUPERUSER_PASSWORD: secret
ports:
- "8000:8000"
depends_on:
- postgres
- redis
restart: unless-stopped
volumes:
postgres_data: