14 lines
406 B
YAML
14 lines
406 B
YAML
# Docker Compose for deployment
|
|
# IMAGE_TAG is set by Jenkins during deployment (e.g., latest, or git commit SHA)
|
|
services:
|
|
app:
|
|
image: ${DOCKER_REGISTRY:-docker.io}/${DOCKER_IMAGE:-myapp}:${IMAGE_TAG:-latest}
|
|
container_name: jenkins-deploy-app
|
|
ports:
|
|
- "8080:8080"
|
|
volumes:
|
|
- ./data:/app/data
|
|
environment:
|
|
- VERSION=${IMAGE_TAG:-latest}
|
|
restart: unless-stopped
|