Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Gateway and DNS error on start #307

Open
2 tasks done
TSInf opened this issue May 31, 2022 · 0 comments
Open
2 tasks done

Gateway and DNS error on start #307

TSInf opened this issue May 31, 2022 · 0 comments
Labels
question Further information is requested

Comments

@TSInf
Copy link

TSInf commented May 31, 2022

Troubleshooting

  • I have attempted to troubleshoot this already

Describe your question

Hallo dear Team,
i re-installed my hole Ubuntu PC and have now created a test projekt.

If i want to start that projekt with

10updocker start testneu

... i get following to error messages:

⠏ Ensuring global services are running...
Error : Creating global_gateway_1 ...
Creating global_mailcatcher_1 ...
Creating global_mysql_1 ...
Creating global_dns_1 ...
Creating global_dns_1 ... error

ERROR: for global_dns_1 Cannot start service dns: Invalid address 10.0.0.2: It does not belong to any of this network's subnets
Creating global_gateway_1 ... error

ERROR: for global_gateway_1 Cannot start service gateway: Invalid address 10.0.0.3: It does not belong to any of this network's subnets
Creating global_mailcatcher_1 ... done
Creating global_mysql_1 ... done
Creating global_phpmyadmin_1 ...
Creating global_phpmyadmin_1 ... done

ERROR: for dns Cannot start service dns: Invalid address 10.0.0.2: It does not belong to any of this network's subnets

ERROR: for gateway Cannot start service gateway: Invalid address 10.0.0.3: It does not belong to any of this network's subnets
Encountered errors while bringing up the project.

docker-compose.yml is this

version: "2.4"
services:

Run a local dnsmasq server for the containers that will resolve DNS queries and

route any *.test domains to the gateway container

dns:
image: andyshinn/dnsmasq
cap_add:
- NET_ADMIN
command: -A /test/10.0.0.3 --log-facility=-
networks:
wplocaldocker:
ipv4_address: 10.0.0.2
gateway:
image: jwilder/nginx-proxy:alpine
ports:
- 127.0.0.1:80:80
- 127.0.0.1:443:443
volumes:
- ./ssl-certs:/etc/nginx/certs:ro
- ./config/nginx/503.html:/usr/share/nginx/html/503.html:ro
- ./config/nginx/nginx.tmpl:/app/nginx.tmpl:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
wplocaldocker:
ipv4_address: 10.0.0.3
mysql:
image: mariadb:10.3
volumes:
- ./config/mysql/config.cnf:/etc/mysql/mysql.conf.d/wp-local-docker.cnf:ro
- mysqlData:/var/lib/mysql
ports:
- 127.0.0.1:3366
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_USER: wordpress
MYSQL_PASSWORD: password
mem_limit: 1024M
mem_reservation: 1024M
networks:
- wplocaldocker
mailcatcher:
image: schickling/mailcatcher
ports:
- 127.0.0.1:1025:1025
- 127.0.0.1:1080:1080
environment:
MAILCATCHER_PORT: 1025
networks:
- wplocaldocker
phpmyadmin:
image: phpmyadmin
ports:
- 127.0.0.1:8092:80
depends_on:
- mysql
environment:
PMA_HOST: mysql
networks:
- wplocaldocker
networks:
wplocaldocker:
external:
name: wplocaldocker
volumes:
mysqlData:
elasticsearchData:

Many thanks and a good week for you

Code of Conduct

  • I agree to follow this project's Code of Conduct
@TSInf TSInf added the question Further information is requested label May 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant