forked from MarseyWorld/MarseyWorld
add seed-db.sql
parent
ca5769b807
commit
6d664fd4ce
|
@ -8,9 +8,9 @@ services:
|
|||
- "./:/opt/Drama/service"
|
||||
environment:
|
||||
- PYTHONPATH="opt/Drama/service"
|
||||
- REDIS_URL=redis://127.0.0.1
|
||||
- DATABASE_URL=postgresql://postgres@127.0.0.1:5432/postgres
|
||||
- DATABASE_CONNECTION_POOL_URL=postgresql://postgres@127.0.0.1:5432/postgres
|
||||
- REDIS_URL=redis://redis
|
||||
- DATABASE_URL=postgresql://postgres@postgres:5432/postgres
|
||||
- DATABASE_CONNECTION_POOL_URL=postgresql://postgres@postgres:5432/postgres
|
||||
- MASTER_KEY=${MASTER_KEY:-KTVciAUQFpFh2WdJ/oiHJlxl6FvzRZp8kYzAAv3l2OA=}
|
||||
- SESSION_COOKIE_SECURE=false
|
||||
- FLASK_DEBUG=1
|
||||
|
@ -25,14 +25,14 @@ services:
|
|||
- AWS_SECRET_ACCESS_KEY=vcxvdfgfc6r554etrgd
|
||||
- MAILGUN_KEY=vcxvdfgfc6r554etrgd
|
||||
- admin_email=drama@rdrama.net
|
||||
- FORCE_HTTPS=1
|
||||
- FORCE_HTTPS=0
|
||||
- DISCORD_SERVER_ID=vcxvdfgfc6r554etrgd
|
||||
- DISCORD_CLIENT_ID=vcxvdfgfc6r554etrgd
|
||||
- DISCORD_CLIENT_SECRET=vcxvdfgfc6r554etrgd
|
||||
- DISCORD_BOT_TOKEN=vcxvdfgfc6r554etrgd
|
||||
- imgurkey=vcxvdfgfc6r554etrgd
|
||||
- FACEBOOK_TOKEN=vcxvdfgfc6r554etrgd
|
||||
- HCAPTCHA_SITEKEY=vcxvdfgfc6r554etrgd
|
||||
#- HCAPTCHA_SITEKEY=vcxvdfgfc6r554etrgd
|
||||
- HCAPTCHA_SECRET=vcxvdfgfc6r554etrgd
|
||||
- youtubekey=vcxvdfgfc6r554etrgd
|
||||
- PUSHER_KEY=vcxvdfgfc6r554etrgd
|
||||
|
@ -56,6 +56,7 @@ services:
|
|||
image: postgres:12.3
|
||||
volumes:
|
||||
- "./schema.sql:/docker-entrypoint-initdb.d/00-schema.sql"
|
||||
- "./seed-db.sql:/docker-entrypoint-initdb.d/01-schema.sql"
|
||||
environment:
|
||||
- POSTGRES_HOST_AUTH_METHOD=trust
|
||||
ports:
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
INSERT INTO public.boards
|
||||
(id, name, has_banner, has_profile,
|
||||
created_utc, profile_nonce, banner_nonce)
|
||||
VALUES
|
||||
(1, 'main', false, false,
|
||||
0, 0, 0);
|
||||
|
||||
INSERT INTO public.users
|
||||
(id, username, passhash,
|
||||
created_utc, admin_level, has_banner, over_18, creation_ip, hide_offensive, is_activated, is_banned,
|
||||
is_nsfw, is_private, karma, comment_karma, is_deleted, filter_nsfw,
|
||||
profile_nonce, banner_nonce, login_nonce,
|
||||
defaultsorting, defaultsortingcomments, namecolor, titlecolor, theme, themecolor)
|
||||
VALUES
|
||||
-- admin:admin
|
||||
(1, 'admin', 'pbkdf2:sha256:150000$z6kifBOp$1ee4ab0b1d565d541715d128d4d00dee2800f157ac3865546efed28bbb726dac',
|
||||
0, 6, false, false, '127.0.0.1', false, true, 0,
|
||||
false, false, 0, 0, false, false,
|
||||
0, 0, 0,
|
||||
'hot', 'top', 'ff66ac', 'ff66ac', 'dark', 'ff66ac');
|
||||
|
||||
INSERT INTO public.badge_defs VALUES (6, 'Beta User', 'Joined Drama during open beta', 'beta.png', 4, 3, NULL);
|
Loading…
Reference in New Issue