-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.my-custom-build.yml
More file actions
63 lines (58 loc) · 1.48 KB
/
docker-compose.my-custom-build.yml
File metadata and controls
63 lines (58 loc) · 1.48 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: '3.1'
# Description: Database-only mirror using native ARM-compatible postgres image
volumes:
pgdata:
driver: local
dbdump:
driver: local
services:
db:
image: postgres:16 # ARM-native
command: postgres -c "shared_buffers=2048MB"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
restart: unless-stopped
shm_size: "2GB"
env_file:
- ./default/postgres.env
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
expose:
- "5432"
musicbrainz:
platform: linux/amd64 # stays x86_64 — this is the server tool and loader
build:
context: build/musicbrainz-prebuilt
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "50"
volumes:
- dbdump:/media/dbdump
restart: unless-stopped
env_file:
- ./default/postgres.env
environment:
- MUSICBRAINZ_BASE_FTP_URL=${MUSICBRAINZ_BASE_FTP_URL:-}
- MUSICBRAINZ_BASE_DOWNLOAD_URL=${MUSICBRAINZ_BASE_DOWNLOAD_URL:-https://data.metabrainz.org/pub/musicbrainz}
- MUSICBRAINZ_WEB_SERVER_HOST=${MUSICBRAINZ_WEB_SERVER_HOST:-localhost}
- MUSICBRAINZ_WEB_SERVER_PORT=${MUSICBRAINZ_WEB_SERVER_PORT:-5000}
depends_on:
- db
- redis
redis:
image: redis:3-alpine
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
restart: unless-stopped
expose:
- "6379"