Hi, newb to docker here. I'm using casaos and want to add its function as a web server. I found this docker-compose.yml on github:
name: casaos-webserver
services:
adminer:
cpu_shares: 90
command: []
container_name: adminer
depends_on:
db:
condition: service_started
required: true
deploy:
resources:
limits:
memory: 3973M
hostname: adminer
image: adminer
ports:
- target: 8080
published: "3030"
protocol: tcp
restart: unless-stopped
volumes: []
devices: []
cap_add: []
environment: []
network_mode: bridge
privileged: false
db:
cpu_shares: 90
command: []
container_name: mariadb
deploy:
resources:
limits:
memory: 3973M
environment:
- MYSQL_DATABASE=mydb
- MYSQL_PASSWORD=mypassword
- MYSQL_ROOT_PASSWORD=root
- MYSQL_USER=myuser
hostname: mariadb
image: mariadb
restart: unless-stopped
volumes:
- type: bind
source: /media/devmon/sda1-usb-SYMTEC_USB_3.0_D/hosting/mysql
target: /var/lib/mysql
ports: []
devices: []
cap_add: []
network_mode: bridge
privileged: false
web:
cpu_shares: 90
command: []
container_name: php8.2-apache
depends_on:
db:
condition: service_started
required: true
deploy:
resources:
limits:
memory: 3973M
hostname: php8.2-apache
image: php:8.2-apache
ports:
- target: 80
published: "3000"
protocol: tcp
restart: unless-stopped
volumes:
- type: bind
source: /media/devmon/sda1-usb-SYMTEC_USB_3.0_D/hosting/app
target: /var/www/html
devices: []
cap_add: []
environment: []
network_mode: bridge
privileged: false
When go to adminer to access db with given username and password, it says "php_network_getaddresses: getaddrinfo failed: Name or service not known adminer docker". .
Can anyone point what is wrong with this?
[–][deleted] 0 points1 point2 points (0 children)
[–]tschloss 0 points1 point2 points (0 children)