Merge pull request #30 from tmak2002/main

compose: use official image instead building image
This commit is contained in:
Matthew Esposito 2024-01-27 13:36:43 -05:00 committed by GitHub
commit d0c5a1d93a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 30 additions and 1 deletions

27
docker-compose.dev.yml Normal file
View File

@ -0,0 +1,27 @@
# docker-compose -f docker-compose.dev.yml up -d
version: "3.8"
services:
web:
build: .
restart: always
container_name: "redlib"
ports:
- 8080:8080
user: nobody
read_only: true
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
networks:
- redlib
security_opt:
- seccomp="seccomp-redlib.json"
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "--tries=1", "http://localhost:8080/settings"]
interval: 5m
timeout: 3s
networks:
redlib:

View File

@ -2,7 +2,9 @@ version: "3.8"
services: services:
web: web:
build: . image: quay.io/redlib/redlib
# quay.io/redlib/redlib:latest-arm # uncomment if you use arm64
# quay.io/redlib/redlib:latest-armv7 # uncomment if you use armv7
restart: always restart: always
container_name: "redlib" container_name: "redlib"
ports: ports: