-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
26 lines (24 loc) · 1.01 KB
/
docker-compose.yml
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
version: '3.4' # Minimal docker-compose.yml compatibility
services:
web: # Example web service
build:
context: "." # Build directory
target: dev # Build stage
args:
DDE_UID: ${DDE_UID} # Pass your UID (DDE_UID is set automatically)
DDE_GID: ${DDE_GID} # Pass your GID (DDE_GID is set automatically)
environment:
- VIRTUAL_HOST=example.test # Virtual host domain
- SSH_AUTH_SOCK=/tmp/ssh-agent/socket # Optional: Use shared ssh-agent
volumes:
- ssh-agent_socket-dir:/tmp/ssh-agent:ro # Optional: Use shared ssh-agent
hostname: example # Optional: Set hostname identical to VHOST configuration
domainname: test # Optional: Set domain identical to VHOST configuration
networks: # Attach dde network
default:
external:
name: "dde"
volumes:
ssh-agent_socket-dir: # Optional: Use shared ssh-agent
external:
name: dde_ssh-agent_socket-dir