-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
136 lines (130 loc) · 2.87 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
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
version: "3.3"
services:
caddy:
container_name: caddy
image: caddy:latest
restart: unless-stopped
ports:
- "80:80"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./container/caddy/site:/srv
- ./container/caddy/data:/data
- caddy_config:/config
- /etc/timezone:/etc/timezone:ro
environment:
- TZ=Europe/Moscow
gitea:
container_name: gitea
image: gitea/gitea:dev
environment:
- USER_UID=1000
- USER_GID=1000
- ROOT_URL
- DB_TYPE=postgres
- DB_HOST
- DB_NAME
- DB_USER
- DB_PASSWD
- SKIP_TLS_VERIFY=true
- TZ=Europe/Moscow
restart: always
ports:
- "2222:22"
volumes:
- ./container/gitea-app:/data
- /etc/timezone:/etc/timezone:ro
links:
- caddy
- gitea-db
gitea-db:
container_name: gitea-db
image: postgres:13-alpine
ports:
- "5432:5432"
restart: always
volumes:
- ./container/gitea-db:/var/lib/postgresql/data
- /etc/timezone:/etc/timezone:ro
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
- TZ=Europe/Moscow
drone:
container_name: drone
image: drone/drone:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./container/drone:/data
- /etc/timezone:/etc/timezone:ro
restart: always
depends_on:
- gitea
links:
- gitea
- caddy
ports:
- "8000:80"
environment:
- DRONE_SERVER_HOST
- DRONE_SERVER_PROTO
- DRONE_AGENTS_ENABLED
- DRONE_GITEA_CLIENT_ID
- DRONE_GITEA_CLIENT_SECRET
- DRONE_GITEA_SERVER
- DRONE_GIT_ALWAYS_AUTH
- DRONE_TLS_AUTOCERT
- DRONE_RPC_SECRET
- DRONE_RUNNER_NETWORKS
- TZ=Europe/Moscow
- DRONE_LOGS_DEBUG
drone-runner-docker:
container_name: drone-runner-docker
image: drone/drone-runner-docker:latest
restart: always
depends_on:
- drone
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/timezone:/etc/timezone:ro
- /etc/docker:/etc/docker
links:
- caddy
- drone
- gitea
ports:
- 3000:3000
environment:
- DRONE_RPC_HOST
- DRONE_RPC_PROTO
- DRONE_RPC_SECRET
- DRONE_RUNNER_NAME
- DRONE_UI_USERNAME
- DRONE_UI_PASSWORD
- DRONE_RUNNER_NETWORKS
- TZ=Europe/Moscow
- DRONE_DEBUG
- DRONE_TRACE
backup:
container_name: backup
image: ghcr.io/integrasdl/restic-cron:latest
restart: always
environment:
- RESTIC_PASSWORD
- RESTIC_REPOSITORY
- BACKUP_DIRECTORY_PATH=/containers
volumes:
- ./container:/containers
depends_on:
- drone
- gitea
- gitea-db
- caddy
volumes:
gitea-app:
gitea-db:
caddy_config:
networks:
gitea-drone-network:
driver: custom-driver-1