mirror of
https://github.com/tommytran732/Gitea-Docker-Compose
synced 2024-11-23 23:31:33 -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 :/
|
||||
image: gitea/gitea:dev-rootless
|
||||
container_name: gitea
|
||||
restart: always
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- gitea-data:/var/lib/gitea
|
||||
- gitea-config:/etc/gitea
|
||||
@ -18,7 +18,6 @@ services:
|
||||
networks:
|
||||
- gitea
|
||||
- mariadb
|
||||
restart: unless-stopped
|
||||
read_only: true
|
||||
user: "1000:1000"
|
||||
security_opt:
|
||||
@ -29,7 +28,7 @@ services:
|
||||
mariadb:
|
||||
image: mariadb:latest
|
||||
container_name: mariadb
|
||||
restart: always
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=changeme
|
||||
- MYSQL_USER=gitea
|
||||
@ -39,7 +38,6 @@ services:
|
||||
- mariadb:/var/lib/mysql
|
||||
networks:
|
||||
- mariadb
|
||||
restart: unless-stopped
|
||||
user: "999:999"
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
@ -49,6 +47,7 @@ services:
|
||||
swag:
|
||||
image: ghcr.io/linuxserver/swag
|
||||
container_name: swag
|
||||
restart: unless-stopped
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
environment:
|
||||
|
Loading…
Reference in New Issue
Block a user