Set static ip at docker-compose


This is how i set static ip at docker-compose

version: '3.7'

services:
    apps:
        image: postgres:12-alpine
        restart: unless-stopped
        networks: 
            apps_default:
                ipv4_address: 172.21.0.2

networks:
    apps_default:  

Published by

susiloharjo

Khoirunnas anfa'ahum linnas A Father, Husband and love to learn person Love my Family, Electronics, Photography, Robot, Dreaming, Programming

Ditunggu komennya ...

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.