Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
easybistro-api-docker
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sasit Wiratjinda
easybistro-api-docker
Commits
3e2720f0
Commit
3e2720f0
authored
Nov 25, 2022
by
Ai-Sasit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6285fdaa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
44 deletions
+3
-44
Dockerfile
Dockerfile
+1
-1
docker-compose.yml
docker-compose.yml
+2
-19
traefik.toml
traefik.toml
+0
-24
No files found.
Dockerfile
View file @
3e2720f0
...
...
@@ -8,4 +8,4 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY
./server /code/server
CMD
["uvicorn", "server.core:app", "--host", "0.0.0.0"]
CMD
["uvicorn", "server.core:app", "--host", "0.0.0.0"
, "--port", "5000"
]
docker-compose.yml
View file @
3e2720f0
...
...
@@ -3,13 +3,9 @@ version: "3"
services
:
server
:
container_name
:
easybistro-api
restart
:
always
build
:
.
labels
:
-
traefik.enable=true
-
traefik.http.routers.app-http.rule=Host(`ec2-13-212-117-20.ap-southeast-1.compute.amazonaws.com`)
-
traefik.http.routers.app-http.tls=true
-
traefik.http.routers.app-http.tls.certresolver=letsencrypt
ports
:
-
"
5000:80"
depends_on
:
-
mongodb
...
...
@@ -21,16 +17,3 @@ services:
environment
:
MONGO_INITDB_ROOT_USERNAME
:
easybistro
MONGO_INITDB_ROOT_PASSWORD
:
xejP3257
traefik
:
image
:
traefik:latest
ports
:
-
80:80
-
443:443
restart
:
always
volumes
:
-
/var/run/docker.sock:/var/run/docker.sock:ro
-
$PWD/traefik.toml:/etc/traefik/traefik.toml
-
traefik-public-certificates:/certificates
volumes
:
traefik-public-certificates
:
traefik.toml
deleted
100644 → 0
View file @
6285fdaa
[entryPoints]
[entryPoints.web]
address
=
":80"
[entryPoints.web.http]
[entryPoints.web.http.redirections]
[entryPoints.web.http.redirections.entryPoint]
to
=
"websecure"
scheme
=
"https"
[entryPoints.websecure]
address
=
":443"
[accessLog]
[providers]
[providers.docker]
exposedByDefault
=
false
[certificatesResolvers.letsencrypt.acme]
email
=
"sasit.wi.62@ubu.ac.th"
storage
=
"acme.json"
[certificatesResolvers.letsencrypt.acme.httpChallenge]
entryPoint
=
"web"
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment