-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
42 lines (39 loc) · 1.15 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
version: "3.8"
services:
github-emulator:
build:
context: .
dockerfile: Dockerfile
ports:
- "443:443"
- "80:80"
- "8000:8000"
- "2222:2222"
volumes:
- github_emulator_data:/data
environment:
- GITHUB_EMULATOR_DATA_DIR=/data
- GITHUB_EMULATOR_DATABASE_URL=sqlite+aiosqlite:////data/github_emulator.db
- GITHUB_EMULATOR_BASE_URL=https://ghemu.local
- GITHUB_EMULATOR_HOSTNAME=ghemu.local
- GITHUB_EMULATOR_SECRET_KEY=change-me-in-production
- GITHUB_EMULATOR_ADMIN_USERNAME=admin
- GITHUB_EMULATOR_ADMIN_PASSWORD=admin
- GITHUB_EMULATOR_SSH_ENABLED=true
- GITHUB_EMULATOR_SSH_PORT=2222
restart: unless-stopped
actions-runner:
build:
context: ./runner
dockerfile: Dockerfile
environment:
- GITHUB_EMULATOR_URL=https://github-emulator
- GITHUB_EMULATOR_TOKEN=${GITHUB_EMULATOR_RUNNER_TOKEN:-}
- RUNNER_REPO=${RUNNER_REPO:-admin/test-repo}
- RUNNER_NAME=docker-runner-1
- RUNNER_LABELS=self-hosted,linux
depends_on:
- github-emulator
restart: unless-stopped
volumes:
github_emulator_data: