-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (53 loc) · 1.21 KB
/
docker-compose.yml
File metadata and controls
56 lines (53 loc) · 1.21 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
services:
env:
hostname: docs
build:
context: .
dockerfile: Dockerfile
image: ${REGISTRY_PREFIX:-}docs/environment:main
environment:
SSH_AUTH_SOCK: /ssh-agent
volumes:
- "${PWD}:/runner/"
- home:/home/runner
- "${SSH_KEY_DOCS:-~/.ssh/cloud-production}:/etc/ssh/keys/docs:ro"
- "${SSH_KEY_DOCS:-~/.ssh/cloud-production}.pub:/etc/ssh/keys/docs.pub:ro"
- ${SSH_AUTH_SOCK:-/bin/true}:/ssh-agent
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 127.0.0.1:8000:8000
cap_drop:
- ALL
privileged: false
read_only: true
tmpfs:
- /tmp
web:
build:
context: ./web/
image: ${REGISTRY_PREFIX:-}docs/web:main
ports:
- 127.0.0.1:8080:8080
healthcheck:
test: curl --fail --user-agent 'healthcheck' http://localhost:8080/healthz
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
restart: unless-stopped
user: 101:101
privileged: false
read_only: true
tmpfs:
- /tmp
cap_drop:
- ALL
volumes:
- ./site/:/usr/local/share/site/:ro
develop:
watch:
- action: rebuild
path: ./web/
volumes:
home: