From 9eac515f31b89dab4f76633fe806a9feed1353f8 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Sun, 28 Jul 2019 18:18:59 -0400 Subject: [PATCH] Fixes #35 not working docker-compose.yml --- README.md | 5 ++++- docker-compose.yml | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3268dc99..2fe3b694 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,8 @@ - For TCP strong encryption, allow outbound TCP 501 - For TCP normal encryption, allow outbound TCP 502 - For the built-in web HTTP proxy, allow inbound TCP 8888 + - Docker API 1.25 to support `init` + - If you use Docker Compose, docker-compose >= 1.22.0, to support `init: true`

@@ -208,11 +210,12 @@ There are various ways to achieve this, depending on your use case. The docker-compose.yml file would look like: ```yml - version: '3' + version: '3.7' services: pia: image: qmcgaw/private-internet-access container_name: pia + init: true cap_add: - NET_ADMIN devices: diff --git a/docker-compose.yml b/docker-compose.yml index f685fe79..811a4f87 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -version: '3' +version: '3.7' services: pia: build: https://github.com/qdm12/private-internet-access-docker.git @@ -12,7 +12,7 @@ services: init: true ports: - 8888:8888/tcp - command: + # command: environment: - USER=js89ds7 - PASSWORD=8fd9s239G