aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-03-12 15:51:50 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-03-12 15:51:54 +0100
commit1b3bd7a60d749e8b577f8a08c70398b49a46d58c (patch)
treec5f513f27404c315f92a9c45ae3a3f7a9addc477 /docker-compose.yml
parentuse `--progress plain` with docker-compose build (diff)
downloadwg-api-web-1b3bd7a60d749e8b577f8a08c70398b49a46d58c.tar.gz
wg-api-web-1b3bd7a60d749e8b577f8a08c70398b49a46d58c.zip
update docker-compose.yml
First, not everybody likes the journald setting. Also, it's good to simplify it a bit, so that people are less confused.
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml18
1 files changed, 6 insertions, 12 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index 82b228a..2069204 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,30 +1,24 @@
-version: '3.4'
-
-x-default-settings:
- &default-settings
- logging:
- driver: journald
- restart: unless-stopped
+version: '3'
services:
web:
- << : *default-settings
- depends_on: [api]
image: egortensin/wg-api-web:1
+ depends_on: [api]
+ restart: unless-stopped
ports:
- '8090:80'
volumes:
- './data:/data:ro'
api:
- << : *default-settings
# Pin to 'latest' or to a different hash if running on something other than
# x64. The hash was used because the upstream image doesn't use versions
# (as of Jan 2023).
image: james/wg-api@sha256:76428f4fe0efee9e0d17c8d89920535d536675f604a9f5081075615cac0d2411
+ command: wg-api --device "${WG_IFACE:-wg0}" --listen 192.168.177.1:1234
+ restart: unless-stopped
+ network_mode: host
cap_add:
- NET_ADMIN
- network_mode: host
- command: wg-api --device "${WG_IFACE:-wg0}" --listen 192.168.177.1:1234
networks:
default: