forked from nickadam/ordig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-template.yml
42 lines (42 loc) · 1.02 KB
/
docker-compose-template.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
version: '3.5'
services:
api:
image: nickadam/ordig:1.1
working_dir: /home/node/app
command: bash -c 'while true; do npm start; done'
environment:
WG_NAME: {{WG_NAME}}
WG_IP: {{WG_IP}}
WG_POOL: {{WG_POOL}}
WG_NAMESPACE: {{WG_NAMESPACE}}
WG_NAMESERVER: {{WG_NAMESERVER}}
WG_PORT: {{WG_PORT}}
WG_ENDPOINT: {{WG_ENDPOINT}}
WG_ALLOWED: {{WG_ALLOWED}}
WG_SERVER_API_KEY: {{WG_SERVER_API_KEY}}
WG_CLIENT_API_KEY: {{WG_CLIENT_API_KEY}}
volumes:
- type: bind
source: /opt/ordig/data
target: /data
proxy:
image: caddy/caddy
ports:
- target: 80
published: 80
mode: host
- target: 443
published: 443
mode: host
depends_on:
- api
volumes:
- type: bind
source: ./Caddyfile
target: /etc/caddy/Caddyfile
- type: bind
source: ./public
target: /var/www/html/public
- type: bind
source: /opt/ordig/caddy-data
target: /data