Update Docker Compose for Gitea deployment; remove obsolete assignment PDF
This commit is contained in:
parent
a5a8c7c561
commit
9a160c5836
BIN
assignment-2.pdf
BIN
assignment-2.pdf
Binary file not shown.
@ -1,24 +1,21 @@
|
||||
services:
|
||||
api:
|
||||
build:
|
||||
context: ./app
|
||||
container_name: fastapi_api
|
||||
volumes:
|
||||
- appdata:/data
|
||||
expose:
|
||||
- "8000"
|
||||
gitea:
|
||||
image: gitea/gitea:1.22
|
||||
container_name: gitea
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
|
||||
# SSH settings (CRITICAL FIX)
|
||||
- GITEA__server__START_SSH_SERVER=true
|
||||
- GITEA__server__SSH_DOMAIN=35.175.189.8
|
||||
- GITEA__server__SSH_PORT=2222
|
||||
- GITEA__server__SSH_LISTEN_PORT=2222
|
||||
|
||||
volumes:
|
||||
- /home/ubuntu/data/gitea:/data
|
||||
|
||||
nginx:
|
||||
image: nginx:1.27-alpine
|
||||
container_name: fastapi_nginx
|
||||
depends_on:
|
||||
- api
|
||||
ports:
|
||||
- "80:80"
|
||||
volumes:
|
||||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
appdata:
|
||||
- "80:3000"
|
||||
- "2222:2222"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user