fix(storage): add docker volumes for gitea data and postgres data
This commit is contained in:
@@ -11,7 +11,7 @@ services:
|
||||
POSTGRES_USER: ${GITEA_DB_USER}
|
||||
POSTGRES_PASSWORD: ${GITEA_DB_PASSWORD}
|
||||
volumes:
|
||||
- ${GITEA_DATA_PATH}/postgres:/var/lib/postgresql/data
|
||||
- gitea_postgres_data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- gitea_net
|
||||
|
||||
@@ -47,9 +47,7 @@ services:
|
||||
GITEA__mailer__SKIP_VERIFY: ${SMTP_SKIP_VERIFY}
|
||||
|
||||
volumes:
|
||||
- ${GITEA_DATA_PATH}/gitea:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- gitea_data:/data
|
||||
|
||||
ports:
|
||||
- "${HTTP_PORT}:3000"
|
||||
@@ -61,3 +59,7 @@ services:
|
||||
networks:
|
||||
gitea_net:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
gitea_data:
|
||||
gitea_postgres_data:
|
||||
|
||||
Reference in New Issue
Block a user