-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (35 loc) · 1.08 KB
/
docker-compose.yml
File metadata and controls
38 lines (35 loc) · 1.08 KB
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
# ---------------------------------------------------------
# {{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}
# Replace this with your language-specific live-reload or run command
# Examples: ["npm", "run", "dev"], ["make", "run"], ["cargo", "run"]
command: ["/bin/sh", "-c", "echo 'Please define a command in docker-compose.yml!'; exit 1"]
# 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: