Hello,
I have configured the IP static Adress and the netword in the docker-compose.yml
Like this
`
version: '3.3'
services:
php:
build:
context: .
dockerfile: dockerfile
container_name: php73
depends_on:
- db
image: php:7.3-apache
volumes:
- /home/arthur/bdese:/var/www/html/
extra_hosts:
- "XXXXX.local:127.0.0.1"
hostname: XXXXX.local
domainname: local
ports:
- 80:80
networks:
bdese:
ipv4_address: 172.20.0.10
db:
container_name: mysql8
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: ****
MYSQL_DATABASE: *****
MYSQL_USER: ****
MYSQL_PASSWORD: ******
networks:
bdese:
ipv4_address: 172.20.0.11
phpmya:
image: phpmyadmin/phpmyadmin:latest
container_name: phpmyadmin
environment:
PMA_ARBITRARY: 1
PMA_HOST: db
PMA_USER: ****
PMA_PASSWORD: ****
UPLOAD_LIMIT: 20M
ports:
- 8899:80
networks:
bdese:
ipv4_address: 172.20.0.12
networks:
bdese:
ipam:
config:
- subnet: "172.20.0.0/16"
`
No success. When i call the APP in URL…
Do you have an idiea?
Maybe the extra host is not good.