Skip to content

9leks/api-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# build image
docker build -t apiproxy .

# create network
docker network create apiproxy-nw

# start mysql container
docker run -d \
    --network apiproxy-nw \
    --network-alias mysql \
    --name apiproxy-db \
    -v apiproxy-mysql-data:/var/lib/mysql \
    mysql:8.0

# start server container and run server
docker run -dp 8000:8000 \
    --name apiproxy \
    --network apiproxy-nw \
    -e PORT=8000 \
    -e IP=0.0.0.0 \
    -e MYSQL_HOST=mysql \
    -e MYSQL_USER=root \
    -e MYSQL_PASSWORD=password \
    -e MYSQL_DB=apiproxydb \
    -e JWT_SECRET="jwt_secret" \
    apiproxy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published