Sign inSign up

bitroid/urlshortener

By bitroid

•Updated over 5 years ago

Image
1

115

bitroid/urlshortener repository overview

⁠urlshortener

CI Status: Docker Image CI

⁠How to run url shortener docker

docker-compose.yml

version: '3.1'
services:
    nginx:
        image: nginx:1.13.7
        container_name: nginx
        depends_on:
            - flask
        volumes:
            - ./nginx.conf:/etc/nginx/conf.d/default.conf
        networks:
            - my-network
        ports:
            - 80:80
    flask:
        image: bitroid/urlshortener:v1
        container_name: flask
        networks:
            my-network:
                aliases:
                    - flask-app
        ports:
            - 8000:8000

networks:
    my-network:

nginx.conf

server {
    listen 80;
    server_name localhost;

    location / {
        proxy_pass http://flask-app:8000/;
        proxy_set_header Host "localhost";
    }
}

⁠Command to launch docker

docker-compose up -d

Tag summary

Content type

Image

Digest

Size

46.2 MB

Last updated

over 5 years ago

docker pull bitroid/urlshortener