Skip to content
7 changes: 4 additions & 3 deletions docker-compose-offline.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
name: scancodeio
services:
db:
image: postgres:13
image: docker.io/library/postgres:13
env_file:
- docker.env
volumes:
- db_data:/var/lib/postgresql/data/

redis:
image: redis
image: docker.io/library/redis:latest
# Enable redis data persistence using the "Append Only File" with the
# default policy of fsync every second. See https://redis.io/topics/persistence
command: redis-server --appendonly yes
Expand Down Expand Up @@ -45,7 +46,7 @@ services:
- web # Ensure that potential db migrations run first

nginx:
image: nginx
image: docker.io/library/nginx:latest
ports:
- 80:80
- 443:443
Expand Down
1 change: 1 addition & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# $ docker compose -f docker-compose.yml -f docker-compose.dev.yml run --rm web bash
# $ SCANCODEIO_TEST_FIXTURES_REGEN=1 ./manage.py test

name: scancodeio
services:
web:
env_file:
Expand Down
1 change: 1 addition & 0 deletions docker-compose.purldb-scan-worker.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
include:
- docker-compose.yml

name: scancodeio
services:
purldb_scan_worker:
build: .
Expand Down
9 changes: 5 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: scancodeio
services:
db:
image: postgres:13
image: docker.io/library/postgres:13
env_file:
- docker.env
volumes:
Expand All @@ -9,7 +10,7 @@ services:
restart: always

redis:
image: redis
image: docker.io/library/redis:latest
# Enable redis data persistence using the "Append Only File" with the
# default policy of fsync every second. See https://redis.io/topics/persistence
command: redis-server --appendonly yes
Expand Down Expand Up @@ -54,7 +55,7 @@ services:
- web

nginx:
image: nginx:alpine
image: docker.io/library/nginx:alpine
ports:
- "${NGINX_PUBLISHED_HTTP_PORT:-80}:80"
- "${NGINX_PUBLISHED_HTTPS_PORT:-443}:443"
Expand All @@ -67,7 +68,7 @@ services:
restart: always

clamav:
image: clamav/clamav
image: docker.io/clamav/clamav:latest
volumes:
- clamav_data:/var/lib/clamav
- workspace:/var/scancodeio/workspace/
Expand Down