Skip to content

Container DNS resolution not possible, default internet not working #24666

Closed Answered by Anachron
Anachron asked this question in Q&A
Discussion options

You must be logged in to vote

Closing as I switched to pasta and the following docker-compose.yml file works now:

version: '3.1'

services:

  proxy:
    image: docker.io/alpine
    command: sleep inf
    network_mode: 'pasta'
    ports:
      - 8082:80

  application:
    image: docker.io/wordpress:6.7
    volumes:
      - /data/cnt/appdata/wordpress/site:/var/www/html
    env_file: environment.env
    network_mode: 'service:proxy'

  database:
    image: docker.io/mysql:8.0
    volumes:
      - /data/cnt/appdata/wordpress/database:/var/lib/mysql
    env_file: environment.env
    network_mode: 'service:proxy'

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by sbrivio-rh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
network Networking related issue or feature pasta pasta(1) bugs or features
1 participant