Reputation: 29
I'm working as a DevOps for some of the Projects Where I am facing an issue,
I have one docker-compose.yml which is working fine with local IP like 192.168.0.38 but I want to map it with my AWS IP (54.xxx.xxx.23) instead of local host IP.
version: '3' services: api: build: ./api image: api environment: - PYTHONUNBUFFERED=1 expose: - ${scikiqapiport} ports: - ${scikiqapiport}:${scikiqapiport} command: "python3 manage.py makemigrations" command: "chmod -R 777 ./scikiq/scikiq/static:rw" command: "python3 manage.py migrate" command: "gunicorn --workers=3 --bind=0.0.0.0:${scikiqapiport} wsgi" restart: on-failure depends_on: - base volumes: - "../compressfile:/home/data/arun/compressfile" - "static:/home/data/arun/scikiq/scikiq/static:rw" scikiqweb: build: ./web image: web ports: - ${scikiqwebport} command: "gunicorn --workers=3 --bind=0.0.0.0:${scikiqwebport} wsgi" restart: on-failure depends_on: - base nginx: image: nginx ports: - ${scikiqwebport}:80 volumes: - ./nginx:/etc/nginx/conf.d depends_on: - scikiqweb1 base: build: ./base-image image: scikiq_base volumes: compressfile: static:
Your help will be appreciated.
Thank You
Upvotes: 1
Views: 370