-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (38 loc) · 964 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (38 loc) · 964 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
---
# ---------------------------------------------------------
# project_name Docker Compose
# Licensed under the Apache License, Version 2.0
# ---------------------------------------------------------
services:
app:
build:
context: .
target: builder
ports:
- "${APP_PORT:-8080}:8080"
volumes:
- ./src:/app/src
environment:
- APP_ENV=${APP_ENV:-development}
- APP_DEBUG=${APP_DEBUG:-true}
# Standard Python development command
command:
- "python"
- "-m"
- "project_name"
# Standard Database Profile
# Use `docker-compose --profile db up` to start this service
db:
image: postgres:15-alpine
profiles:
- db
ports:
- "5432:5432"
environment:
POSTGRES_USER: ${DB_USER:-admin}
POSTGRES_PASSWORD: ${DB_PASSWORD:-secret}
POSTGRES_DB: ${DB_NAME:-project_name_dev}
volumes:
- db_data:/var/lib/postgresql/data
volumes:
db_data: