mirror of
https://github.com/tommytran732/Gitea-Docker-Compose
synced 2024-11-23 23:41:32 -05:00
Update docker-compose.yml
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
4bd504a55d
commit
9b6030f2a6
@ -5,7 +5,7 @@ services:
|
|||||||
# You can use gitea/gitea:latest-rootless, but it tends to be behind gitea:latest for some reason :/
|
# You can use gitea/gitea:latest-rootless, but it tends to be behind gitea:latest for some reason :/
|
||||||
image: gitea/gitea:dev-rootless
|
image: gitea/gitea:dev-rootless
|
||||||
container_name: gitea
|
container_name: gitea
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- gitea-data:/var/lib/gitea
|
- gitea-data:/var/lib/gitea
|
||||||
- gitea-config:/etc/gitea
|
- gitea-config:/etc/gitea
|
||||||
@ -18,7 +18,6 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- gitea
|
- gitea
|
||||||
- mariadb
|
- mariadb
|
||||||
restart: unless-stopped
|
|
||||||
read_only: true
|
read_only: true
|
||||||
user: "1000:1000"
|
user: "1000:1000"
|
||||||
security_opt:
|
security_opt:
|
||||||
@ -29,7 +28,7 @@ services:
|
|||||||
mariadb:
|
mariadb:
|
||||||
image: mariadb:latest
|
image: mariadb:latest
|
||||||
container_name: mariadb
|
container_name: mariadb
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_ROOT_PASSWORD=changeme
|
- MYSQL_ROOT_PASSWORD=changeme
|
||||||
- MYSQL_USER=gitea
|
- MYSQL_USER=gitea
|
||||||
@ -39,7 +38,6 @@ services:
|
|||||||
- mariadb:/var/lib/mysql
|
- mariadb:/var/lib/mysql
|
||||||
networks:
|
networks:
|
||||||
- mariadb
|
- mariadb
|
||||||
restart: unless-stopped
|
|
||||||
user: "999:999"
|
user: "999:999"
|
||||||
security_opt:
|
security_opt:
|
||||||
- no-new-privileges:true
|
- no-new-privileges:true
|
||||||
@ -49,6 +47,7 @@ services:
|
|||||||
swag:
|
swag:
|
||||||
image: ghcr.io/linuxserver/swag
|
image: ghcr.io/linuxserver/swag
|
||||||
container_name: swag
|
container_name: swag
|
||||||
|
restart: unless-stopped
|
||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
environment:
|
environment:
|
||||||
|
Loading…
Reference in New Issue
Block a user