Skip to content

Commit ebcb59b

Browse files
committed
update cover image for default playlist, adjust database port number for release docker
1 parent 3b2f563 commit ebcb59b

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Use postgres/example user/password credentials
2+
services:
3+
db:
4+
image: postgres
5+
restart: always
6+
env_file: "/home/admin/docker-env/database.env"
7+
# set shared memory limit when using docker compose
8+
shm_size: 128mb
9+
volumes:
10+
- "/home/admin/mymusicbox_production/database/data-production:/var/lib/postgresql/data"
11+
- "/home/admin/mymusicbox_production/database/initscripts:/docker-entrypoint-initdb.d"
12+
# /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*:q
13+
#user: 1000:1000
14+
ports:
15+
- "127.0.0.1:5432:5432"
16+
# or set shared memory limit when deploy via swarm stack
17+
#volumes:
18+
#dev_data:
19+
# - type: tmpfs
20+
# target: /dev/shm
21+
# tmpfs:
22+
# size: 134217728 # 128*2^20 bytes = 128Mb
23+
#environment:
24+
#POSTGRES_PASSWORD: example
25+
adminer:
26+
image: adminer
27+
restart: always
28+
ports:
29+
- 8085:8080

database/initscripts/init_script.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ CREATE INDEX idx_playlistsong_song ON PlaylistSong(SongId);
133133
-- Main playlist for all songs
134134
-- Should not show up in playlist list, instead under tab all songs
135135
INSERT INTO Playlist (Name, Description, ThumbnailPath, IsPublic) VALUES
136-
('Library', 'Default playlist for all', '', FALSE);
136+
('Library', 'Default playlist for all', 'default_playlist_cover.png', FALSE);
137137

138138
-- =============================================
139139
-- SECTION 7: SAMPLE DATA

0 commit comments

Comments
 (0)