gliderlabs / gliderlabs/docker-alpine

Issue with Resolving container's URL

Open
#452 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
5.7k
Forks
530
PR merge metrics
No merged PRs in 30d

Description

I am using alpine based image to run my vue front end app.
I am building three services' containers using docker-compose.yml file below:
from "web", (tomcat image) I can resolve and querry the database using service name "database".
The issue is within alpine based "imbook-front" image. When I ping or curl "web" or assigned IP every thing work fine. but when I use ajax in codes, the name cant be resolved, when I use the assigned IP, the request times out. Help me if any of us knows what could be happening

services:
web:
build:
context: ./
dockerfile: Dockerfile.txt
ports:
- 8081:8081
networks:
testing_net:
ipv4_address: 172.28.0.4

database:
#image: mysql:5.7
build:
context: ./
dockerfile: dockerfile_mysql.txt
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD:
root
aimbook-front:
image: denislohan/aimbook-front
ports:
- 80:8080


networks:
testing_net:
ipam:
driver: default
config:
- subnet: 172.28.0.0/16

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.