2025-03-29 23:37:12 +03:00
|
|
|
services:
|
2025-04-21 16:28:41 -04:00
|
|
|
webserver:
|
|
|
|
image: nginx:1.27.4-alpine
|
|
|
|
container_name: webserver1.1
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|
|
|
|
volumes:
|
|
|
|
- /home/apotheosis/projectWeb:/usr/share/nginx/html
|
|
|
|
- /home/domain.crt:/etc/nginx/conf.d/domain.crt
|
|
|
|
- /home/domain.key:/etc/nginx/conf.d/domain.key
|
|
|
|
- /home//domain.conf:/etc/nginx/conf.d/default.conf
|
|
|
|
- /etc/letsencrypt/live/super-admins.online/privkey.pem:/etc/nginx/conf.d/privkey.pem
|
|
|
|
- /etc/letsencrypt/live/super-admins.online/fullchain.pem:/etc/nginx/conf.d/fullchain.pem
|
2025-03-29 23:37:12 +03:00
|
|
|
|
2025-04-21 16:28:41 -04:00
|
|
|
server:
|
|
|
|
image: docker.gitea.com/gitea:1.23.7
|
|
|
|
container_name: gitea
|
|
|
|
environment:
|
|
|
|
- USER_UID=1000
|
|
|
|
- USER_GID=1000
|
|
|
|
- GITEAdatabaseDB_TYPE=postgres
|
|
|
|
- GITEAdatabaseHOST=db:5432
|
|
|
|
- GITEAdatabaseNAME=gitea
|
|
|
|
- GITEAdatabaseUSER=gitea
|
|
|
|
- GITEAdatabasePASSWD=gitea
|
|
|
|
restart: always
|
2025-03-29 23:37:12 +03:00
|
|
|
|
2025-04-21 16:28:41 -04:00
|
|
|
volumes:
|
|
|
|
- /home/apotheosis/gitea:/data
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
|
|
|
- "222:22"
|
|
|
|
depends_on:
|
|
|
|
- db
|
2025-03-29 23:37:12 +03:00
|
|
|
|
2025-04-21 16:28:41 -04:00
|
|
|
db:
|
|
|
|
image: docker.io/library/postgres:14
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=gitea
|
|
|
|
- POSTGRES_PASSWORD=gitea
|
|
|
|
- POSTGRES_DB=gitea
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- /home/apotheosis/postgres:/var/lib/postgresql/data
|