mirror of
https://github.com/agresdominik/dev-templates.git
synced 2026-04-21 18:05:49 +00:00
Base Templates
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
services:
|
||||
app:
|
||||
container_name: name
|
||||
image: imagename:imagetag
|
||||
|
||||
restart: unless-stopped # no | on-failure | always | unless-stopped
|
||||
|
||||
environment:
|
||||
APP_ENV: development
|
||||
APP_DEBUG: "false"
|
||||
|
||||
ports:
|
||||
- "8080:80" # http://localhost:8080 -> container 80
|
||||
# or:
|
||||
network_mode: host
|
||||
|
||||
volumes:
|
||||
- /absolute/host/path:/container/path
|
||||
|
||||
# Service dependencies
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
Reference in New Issue
Block a user