renamed data folder, moved DB from named to bind volume

This commit is contained in:
Bryan Joshua Pedini 2022-02-06 15:11:02 +01:00
parent ebe0f41dcf
commit ff9bb06bfd
2 changed files with 3 additions and 6 deletions

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
/.env
/gitea_data
/data

View File

@ -33,7 +33,7 @@ services:
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ./gitea_data:/data
- ./data/gitea:/data
- ${GIT_HOMEDIR}/.ssh:/data/git/.ssh
ports:
- ${SSH_PORT}:22
@ -49,12 +49,9 @@ services:
- internal
restart: unless-stopped
volumes:
- database:/var/lib/mysql
- ./data/mysql:/var/lib/mysql
networks:
internal:
traefik-proxy:
external: true
volumes:
database: