1
0
mirror of https://github.com/tommytran732/Gitea-Docker-Compose synced 2024-11-08 15:31:33 -05:00

Update docker-compose.yml

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2022-11-24 22:37:51 -05:00
parent 4bd504a55d
commit 9b6030f2a6
No known key found for this signature in database
GPG Key ID: 060B29EB996BD9F2

View File

@ -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: