tiny 88x31 lexicon for atproto

some scripts

+27
+15
docker-compose.yml
···
··· 1 + services: 2 + db: 3 + image: postgres:15 4 + restart: unless-stopped 5 + environment: 6 + POSTGRES_USER: ${POSTGRES_USER} 7 + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} 8 + POSTGRES_DB: ${POSTGRES_DB} 9 + ports: 10 + - "127.0.0.1:${POSTGRES_PORT}:5432" 11 + volumes: 12 + - dbdata:/var/lib/postgresql/data 13 + 14 + volumes: 15 + dbdata:
+4
down
···
··· 1 + #!/bin/bash 2 + source .env 3 + 4 + migrate -path migrations -database "postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:$POSTGRES_PORT/$POSTGRES_DB?sslmode=disable" down
+4
psql
···
··· 1 + #!/bin/bash 2 + source .env 3 + 4 + docker exec -it 88x31-db-1 psql -U $POSTGRES_USER -d $POSTGRES_DB
+4
up
···
··· 1 + #!/bin/bash 2 + source .env 3 + 4 + migrate -path migrations -database "postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:$POSTGRES_PORT/$POSTGRES_DB?sslmode=disable" up