mirror of https://github.com/wg-easy/wg-easy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
616 B
24 lines
616 B
version: "3.8"
|
|
services:
|
|
wg-easy:
|
|
image: wgeasy
|
|
command: npm run serve
|
|
volumes:
|
|
- ./src/:/app/
|
|
environment:
|
|
- PASSWORD=/run/secrets/wireguard_password
|
|
- WG_HOST=/run/secrets/wireguard_host
|
|
secrets:
|
|
- wireguard_password
|
|
- wireguard_host
|
|
secrets:
|
|
wireguard_password:
|
|
external: true
|
|
wireguard_host:
|
|
external: true
|
|
|
|
# require docker swarm to test
|
|
# docker swarm int
|
|
# printf "password" | docker secret create wireguard_password -
|
|
# printf "domain.com" | docker secret create wireguard_host -
|
|
# docker stack deploy -c docker-compose.dev-secrets.yml wg-easy
|