-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
30 lines (28 loc) · 1.21 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
27
28
29
30
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:
- sync:/var/www:nocopy # Share project directory (nocopy is important)
- 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
sync: # Mount docker-sync volume
external:
name: example_sync # Use value configured in docker-sync.yml