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:  
%d bloggers like this: