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 /.env
/gitea_data /data

View File

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