-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathdocker-compose.yml
36 lines (36 loc) · 1.13 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version: '3'
services:
postgres:
ports:
- '5432:5432'
environment:
- POSTGRES_USER=mirror_db_user
- POSTGRES_PASSWORD=mirror_db_pass
volumes:
- ./mirror:/mirror
image: postgres:alpine
sb-mirror:
image: mchangrh/sb-mirror:latest
build: ./build/sb-mirror
# map port externally
ports:
- "873:873"
environment:
# - MIRROR=TRUE # enable cronjob
- MIRROR_URL=mirror.sb.mchang.xyz # override to set upstream mirror
# - VALIDATE=TRUE # enable rsync checksum validation
# - CSVLINT=TRUE # lint csv files (will just stop sqlite3 from complaining)
# - SQLITE=TRUE # generate .db in /export
# SQLITE will not always generate usable files since postgres does not export files correctly.
- PADDING_VAR=false # here to make compose not complain
volumes:
- ./mirror:/mirror
- ./export:/export
sb-server:
ports:
- "8080:8080"
volumes:
- ./export/:/usr/src/app/database/
# - ./sqlite-config.json:/usr/src/app/config.json
# - ./postgres-config.json:/usr/src/app/config.json
image: ghcr.io/ajayyy/sb-server:latest