Commit 180369e1 authored by nanahira's avatar nanahira

arch shit

parent d46c7595
...@@ -2,7 +2,11 @@ version: '2.4' ...@@ -2,7 +2,11 @@ version: '2.4'
services: services:
smartdns: smartdns:
restart: always restart: always
{% if ansible_architecture == 'aarch64' %}
image: git-registry.mycard.moe/nanahira/docker-smartdns:master-arm
{% else %}
image: git-registry.mycard.moe/nanahira/docker-smartdns image: git-registry.mycard.moe/nanahira/docker-smartdns
{% endif %}
network_mode: host network_mode: host
command: -f -x -c /etc/smartdns/smartdns.conf command: -f -x -c /etc/smartdns/smartdns.conf
volumes: volumes:
...@@ -10,7 +14,11 @@ services: ...@@ -10,7 +14,11 @@ services:
- ./smartdns-cache:/tmp/smartdns-cache - ./smartdns-cache:/tmp/smartdns-cache
dnsmasq: dnsmasq:
restart: always restart: always
{% if ansible_architecture == 'aarch64' %}
image: git-registry.mycard.moe/nanahira/dnsmasq:original-arm
{% else %}
image: git-registry.mycard.moe/nanahira/dnsmasq:original image: git-registry.mycard.moe/nanahira/dnsmasq:original
{% endif %}
network_mode: host network_mode: host
cap_add: cap_add:
- NET_ADMIN - NET_ADMIN
......
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
- misc - misc
- smartdns-cache - smartdns-cache
- name: dnsmasq docker-compose - name: dnsmasq docker-compose
copy: template:
src: ../files/dnsmasq/docker-compose.yml src: ../files/dnsmasq/docker-compose.yml.j2
dest: '{{ansible_user_dir}}/nextgen-router/services/dnsmasq/docker-compose.yml' dest: '{{ansible_user_dir}}/nextgen-router/services/dnsmasq/docker-compose.yml'
- name: dnsmasq.conf - name: dnsmasq.conf
template: template:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment