2024-11-04 15:53:55 +00:00
|
|
|
services:
|
2024-11-04 21:14:05 +00:00
|
|
|
nginx:
|
|
|
|
image: nginx:latest
|
|
|
|
container_name: nginx
|
|
|
|
volumes:
|
|
|
|
- ./nginx/conf.d:/etc/nginx/conf.d
|
|
|
|
- ./nginx/ssl:/etc/nginx/ssl
|
|
|
|
- ./nginx/html:/usr/share/nginx/html
|
|
|
|
- /coursework/nginx/ssl:/coursework/nginx/ssl
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|
|
|
|
depends_on:
|
|
|
|
- gitea
|
|
|
|
restart: always
|
|
|
|
|
2024-11-04 15:53:55 +00:00
|
|
|
gitea:
|
|
|
|
image: gitea/gitea:latest
|
|
|
|
container_name: gitea
|
|
|
|
environment:
|
|
|
|
- USER_UID=1000
|
|
|
|
- USER_GID=1000
|
|
|
|
volumes:
|
|
|
|
- ./gitea-data:/data
|
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
|
|
|
- "222:22"
|
|
|
|
restart: always
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
gitea-data:
|