# 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
-
Notifications
You must be signed in to change notification settings - Fork 0
9leks/api-proxy
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published