-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (44 loc) · 932 Bytes
/
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
---
version: "2"
services:
ii-nz:
build:
context: .
dockerfile: ii-nz.Dockerfile
networks:
- shared
ports:
- "8080:8080"
restart: always
cfcfg:
image: alpine:3.18
user: 0
environment:
- CF_CREDS
command:
- sh
- -c
- |
chown -R 65532 /etc/cloudflared/creds
rm -rfv /etc/cloudflared/creds/credentials.json
mkdir -p /etc/cloudflared/creds/
echo "$CF_CREDS" | base64 -d > /etc/cloudflared/creds/credentials.json
chown -R 65532 /etc/cloudflared/
volumes:
- cf:/etc/cloudflared:z
restart: on-failure
cloudflared:
build:
context: .
dockerfile: cloudflared.Dockerfile
command: tunnel --config /usr/etc/cloudflared/config.yaml run
# user: 0
networks:
- shared
volumes:
- cf:/etc/cloudflared:ro,z
restart: always
networks:
shared: {}
volumes:
cf: {}